Skip to content

Commit 7af6a94

Browse files
added environment
1 parent 96dacc8 commit 7af6a94

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/build.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
build:
1818
name: Build Image
1919
runs-on: ubuntu-latest
20+
environment: ${{ inputs.environment }}
2021
env:
2122
ECR_REPOSITORY: bento-frontend
2223
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
@@ -71,20 +72,20 @@ jobs:
7172
ignore-unfixed: true
7273
severity: 'CRITICAL,HIGH'
7374

74-
- name: Create Git tag for Image
75-
run: |
76-
git config user.name "GitHub Actions"
77-
git config user.email "[email protected]"
78-
git tag ${{ env.IMAGE_TAG }}
79-
git push origin ${{ env.IMAGE_TAG }}
80-
8175
- name: AWS OIDC Authentication
8276
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
8377
with:
8478
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
8579
aws-region: ${{ env.AWS_REGION }}
8680
role-session-name: ${{ github.actor }}
8781

82+
- name: Create Git tag for Image
83+
run: |
84+
git config user.name "GitHub Actions"
85+
git config user.email "[email protected]"
86+
git tag ${{ env.IMAGE_TAG }}
87+
git push origin ${{ env.IMAGE_TAG }}
88+
8889
- name: Login to Amazon ECR
8990
id: login-aws-ecr
9091
uses: aws-actions/amazon-ecr-login@5a88a04c91d5c6f97aae0d9be790e64d9b1d47b7

0 commit comments

Comments
 (0)