Skip to content

Commit ab19fd1

Browse files
committed
ci: set environment in the workflow
1 parent 611d9d4 commit ab19fd1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish-nginx.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
name: Release nginx configs and image
1717
runs-on: ubuntu-24.04
1818
timeout-minutes: 30
19+
# This environment is tied to the AWS Role assumed by this workflow.
20+
# The Role will only allow to be assumed if the workflow is set with this environment.
21+
# We also have additional protection rules on this environment.
22+
environment: publish-nginx
1923
permissions:
2024
id-token: write
2125
contents: read
@@ -33,7 +37,8 @@ jobs:
3337

3438
- name: Extract version from tag
3539
id: version
36-
run: echo "version=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
40+
# run: echo "version=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
41+
run: echo "version=test1" >> $GITHUB_OUTPUT
3742

3843
- name: Configure AWS credentials (OIDC)
3944
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6

0 commit comments

Comments
 (0)