Skip to content

Commit

Permalink
Fix image tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
tirr-c committed Mar 27, 2022
1 parent 0418335 commit 2abc6e4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build_frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,10 @@ jobs:
- name: Push
run: |
docker tag frontend 642254835236.dkr.ecr.ap-northeast-2.amazonaws.com/bacchus-reservation/frontend:${GITHUB_REF##*/}
docker --config .docker push 642254835236.dkr.ecr.ap-northeast-2.amazonaws.com/bacchus-reservation/frontend:${GITHUB_REF##*/}
if [[ -v $GITHUB_HEAD_REF ]]; then
TAG_NAME=$GITHUB_HEAD_REF
else
TAG_NAME=$GITHUB_REF_NAME
fi
docker tag frontend 642254835236.dkr.ecr.ap-northeast-2.amazonaws.com/bacchus-reservation/frontend:${TAG_NAME}
docker --config .docker push 642254835236.dkr.ecr.ap-northeast-2.amazonaws.com/bacchus-reservation/frontend:${TAG_NAME}

0 comments on commit 2abc6e4

Please sign in to comment.