Add deploy file

This commit is contained in:
2025-07-23 15:45:14 +02:00
parent 9c11d53641
commit 5ae59eaa85
3 changed files with 11 additions and 1 deletions

View File

@@ -28,6 +28,10 @@ on:
required: false
type: string
default: --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader --ignore-platform-reqs
deploy-file:
required: false
type: string
default: deploy.php
username:
required: false
type: string
@@ -87,4 +91,4 @@ jobs:
echo " StrictHostKeyChecking no" >> ~/.ssh/config
- name: Deploy
run: vendor/bin/dep deploy environment="${{ inputs.environment }}"
run: vendor/bin/dep deploy ${{ inputs.environment }} --file=${{ inputs.deploy-file }}

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea

View File

@@ -66,6 +66,11 @@ jobs:
- **Default:** `${{ vars.REGISTRY_PASSWORD }}`
- **Description:** Password for the Docker registry authentication. Defaults to the value stored in `vars.REGISTRY_PASSWORD`.
- **deploy-file** (optional):
- **Type:** `string`
- **Default:** `deploy.php`
- **Description:** The deployment file used by the Deployer tool. This file contains the deployment configuration and tasks.
## Workflow Job: `deploy`
The `deploy` job handles the core deployment process. It consists of multiple steps to set up dependencies, manage environment variables, build frontend assets, configure SSH, and deploy the application.