Skip to content

Commit

Permalink
Set environment
Browse files Browse the repository at this point in the history
reachfh committed Oct 7, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent e41e448 commit cccbcb9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -97,18 +97,15 @@ jobs:
else
echo "env_name=feature >> $GITHUB_OUTPUT
fi
- name: Debug environment
run: |
echo "environment: ${{ steps.branch_check.outputs.env_name }}"
outputs:
env_name: ${{ steps.branch_check.outputs.env_name }}

build-test:
name: Build test image
needs: setup
# environment:
# # name: ${{ github.ref_name }}
# name: ${{ needs.setup.outputs.env_name }}
environment:
# name: ${{ github.ref_name }}
name: ${{ needs.setup.outputs.env_name }}
permissions:
contents: read
# Push to ghcr.io repository
@@ -152,6 +149,10 @@ jobs:
with:
access_token: ${{ github.token }}

- name: Debug environment
run: |
echo "environment: ${{ event.deployment.environment }}"
- name: Check out source
uses: actions/checkout@v4

@@ -482,9 +483,9 @@ jobs:
build-prod:
name: Build prod image
needs: setup
# environment:
# # name: ${{ github.ref_name }}
# name: ${{ needs.setup.outputs.env_name }}
environment:
# name: ${{ github.ref_name }}
name: ${{ needs.setup.outputs.env_name }}
permissions:
# Interact with GitHub OIDC Token endpoint for AWS
id-token: write

0 comments on commit cccbcb9

Please sign in to comment.