diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b2a4843..3bd25f3 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -8,6 +8,9 @@ on: required: true type: string inputs: + environment: + required: true + type: string image: required: false type: string @@ -80,4 +83,4 @@ jobs: echo " StrictHostKeyChecking no" >> ~/.ssh/config - name: Deploy - run: vendor/bin/dep deploy environment=production + run: vendor/bin/dep deploy environment=${{ inputs.environment }} diff --git a/README.md b/README.md index 9cc39c5..c67caaa 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,10 @@ jobs: - **Description:** The contents of the `.env` file, which is passed in as a secret. ### Input Parameters +- **environment** (required!): + - **Type:** `string` + - **Description:** The environment being deployed .e.g. production + - **image** (optional): - **Type:** `string` - **Default:** `git.qlic.nl/qlic/deploy:php8.3-node22`