We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c28f930 commit 8a5b20bCopy full SHA for 8a5b20b
.github/workflows/test.yaml
@@ -2,18 +2,22 @@ name: test
2
3
on:
4
workflow_dispatch:
5
-
6
-env:
7
- TARGET_ENV: poc
+ inputs:
+ target_env:
+ description: "Target environment"
8
+ required: true
9
+ type: choice
10
+ options:
11
+ - poc
12
13
jobs:
14
deploy:
15
name: Deploy
16
runs-on: ubuntu-latest
17
permissions:
18
id-token: write
- environment: ${{ env.TARGET_ENV }}
- concurrency: deploy-${{ env.TARGET_ENV }}-${{ github.ref }}
19
+ environment: ${{ inputs.target_env }}
20
+ concurrency: deploy-${{ inputs.target_env }}-${{ github.ref }}
21
22
steps:
23
- name: Checkout code
@@ -32,5 +36,7 @@ jobs:
32
36
terraform_version: 1.11.4
33
37
34
38
- name: Terraform init
39
+ env:
40
+ TARGET_ENV: ${{ inputs.target_env }}
35
41
run: |
42
make ${TARGET_ENV} terraform-init
0 commit comments