Skip to content

Commit

Permalink
style: refactor ecr auth
Browse files Browse the repository at this point in the history
  • Loading branch information
RiceAndMeet committed Sep 30, 2023
1 parent efe021e commit df43ad7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-latest-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ jobs:
run: |
make WASM="${WASM}" docker-image
- name: ECR Auth & docker login
run: |
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin "${ECR_REPO}"
- name: Push to ECR (normal)
env:
IMAGE_TAG: ${{ github.sha }}
run: |
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin "${ECR_REPO}"
docker image tag axelar/core "${ECR_REPO}/axelar-core:${IMAGE_TAG}"
docker push "${ECR_REPO}/axelar-core:${IMAGE_TAG}"
Expand All @@ -69,6 +72,5 @@ jobs:
env:
IMAGE_TAG: ${{ github.sha }}
run: |
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin "${ECR_REPO}"
docker image tag axelar/core "${ECR_REPO}/axelar-core:${IMAGE_TAG}-debug"
docker push "${ECR_REPO}/axelar-core:${IMAGE_TAG}-debug"

0 comments on commit df43ad7

Please sign in to comment.