From 5ae59eaa85941d57b26b7c7a3bb76168931b98db Mon Sep 17 00:00:00 2001 From: Koen Baas Date: Wed, 23 Jul 2025 15:45:14 +0200 Subject: [PATCH] Add deploy file --- .gitea/workflows/deploy.yml | 6 +++++- .gitignore | 1 + README.md | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2ff64b2..51810e8 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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 }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/README.md b/README.md index c6dde10..56e851c 100644 --- a/README.md +++ b/README.md @@ -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.