add environment input

This commit is contained in:
Jamie Schouten 2024-09-14 19:50:11 +02:00
parent 258f4d0e2e
commit a970f3744c
2 changed files with 8 additions and 1 deletions

View File

@ -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 }}

View File

@ -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`