add environment input
This commit is contained in:
parent
258f4d0e2e
commit
a970f3744c
@ -8,6 +8,9 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
inputs:
|
inputs:
|
||||||
|
environment:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
image:
|
image:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -80,4 +83,4 @@ jobs:
|
|||||||
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: vendor/bin/dep deploy environment=production
|
run: vendor/bin/dep deploy environment=${{ inputs.environment }}
|
||||||
|
@ -30,6 +30,10 @@ jobs:
|
|||||||
- **Description:** The contents of the `.env` file, which is passed in as a secret.
|
- **Description:** The contents of the `.env` file, which is passed in as a secret.
|
||||||
|
|
||||||
### Input Parameters
|
### Input Parameters
|
||||||
|
- **environment** (required!):
|
||||||
|
- **Type:** `string`
|
||||||
|
- **Description:** The environment being deployed .e.g. production
|
||||||
|
|
||||||
- **image** (optional):
|
- **image** (optional):
|
||||||
- **Type:** `string`
|
- **Type:** `string`
|
||||||
- **Default:** `git.qlic.nl/qlic/deploy:php8.3-node22`
|
- **Default:** `git.qlic.nl/qlic/deploy:php8.3-node22`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user