Skip to content

Commit

Permalink
Update account
Browse files Browse the repository at this point in the history
  • Loading branch information
jbi89 committed May 11, 2023
1 parent c0c5f70 commit 61a95aa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ jobs:
- name: AWS ECR Log In
run: |
$(aws ecr get-login --registry-ids 568023081912 --no-include-email --region us-east-1)
$(aws ecr get-login --registry-ids 400869475597 --no-include-email --region us-east-1)
- name: Push the Docker container
shell: bash
run: |
export GIT_TAG=$(echo $GITHUB_SHA | head -c 7)
docker tag dk-sample-backend:latest 568023081912.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$GIT_TAG
docker tag dk-sample-backend:latest 568023081912.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$TARGET_ENV
docker push 568023081912.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$GIT_TAG
docker push 568023081912.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$TARGET_ENV
docker tag dk-sample-backend:latest 400869475597.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$GIT_TAG
docker tag dk-sample-backend:latest 400869475597.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$TARGET_ENV
docker push 400869475597.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$GIT_TAG
docker push 400869475597.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$TARGET_ENV
- name: Cleanup the containers
shell: bash
run: |
export GIT_TAG=$(echo $GITHUB_SHA | head -c 7)
docker rmi -f dk-sample-backend:latest 568023081912.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$TARGET_ENV 568023081912.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$GIT_TAG
docker rmi -f dk-sample-backend:latest 400869475597.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$TARGET_ENV 400869475597.dkr.ecr.us-east-1.amazonaws.com/dk-sample-backend:$GIT_TAG
# - name: Update deployment status (failure)
# if: failure()
Expand Down

0 comments on commit 61a95aa

Please sign in to comment.