Skip to content

Commit a18e446

Browse files
fix: target environment
1 parent c28f930 commit a18e446

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/test.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@ name: test
22

33
on:
44
workflow_dispatch:
5-
6-
env:
7-
TARGET_ENV: poc
5+
inputs:
6+
target_env:
7+
description: "Target environment"
8+
required: true
9+
type: choice
10+
options:
11+
- poc
812

913
jobs:
1014
deploy:
1115
name: Deploy
1216
runs-on: ubuntu-latest
1317
permissions:
1418
id-token: write
15-
environment: ${{ env.TARGET_ENV }}
16-
concurrency: deploy-${{ env.TARGET_ENV }}-${{ github.ref }}
19+
environment: ${{ inputs.target_env }}
20+
concurrency: deploy-${{ inputs.target_env }}-${{ github.ref }}
1721

1822
steps:
1923
- name: Checkout code
@@ -32,5 +36,7 @@ jobs:
3236
terraform_version: 1.11.4
3337

3438
- name: Terraform init
39+
env:
40+
TARGET_ENV: ${{ inputs.target_env }}
3541
run: |
3642
make ${TARGET_ENV} terraform-init

0 commit comments

Comments
 (0)