Skip to content

Commit 8d73d07

Browse files
authored
Second try (#565)
1 parent ec070f3 commit 8d73d07

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/xc-admin-image-push.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ jobs:
2121
with:
2222
role-to-assume: arn:aws:iam::192824654885:role/github-actions-ecr
2323
aws-region: eu-west-2
24-
- uses: docker/login-action@v2
25-
with:
26-
registry: public.ecr.aws
27-
env:
28-
AWS_REGION: us-east-1
24+
- uses: aws-actions/amazon-ecr-login@v1
25+
id: ecr_login
2926
- run: |
3027
DOCKER_BUILDKIT=1 docker build -t lerna -f tilt_devnet/docker_images/Dockerfile.lerna .
3128
DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f governance/xc_admin/Dockerfile .
3229
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
3330
env:
34-
ECR_REGISTRY: public.ecr.aws
35-
ECR_REPOSITORY: pyth-network/xc-admin
31+
ECR_REGISTRY: ${{ steps.ecr_login.outputs.registry }}
32+
ECR_REPOSITORY: xc-admin

0 commit comments

Comments
 (0)