From d68ce923fd45e75dc6a9ff06d98f1dd3c962ef8b Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Alapont Date: Thu, 2 Feb 2023 20:36:43 -0600 Subject: [PATCH] Second try --- .github/workflows/xc-admin-image-push.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/xc-admin-image-push.yaml b/.github/workflows/xc-admin-image-push.yaml index 80a89ca725..ce7223e9d0 100644 --- a/.github/workflows/xc-admin-image-push.yaml +++ b/.github/workflows/xc-admin-image-push.yaml @@ -21,15 +21,12 @@ jobs: with: role-to-assume: arn:aws:iam::192824654885:role/github-actions-ecr aws-region: eu-west-2 - - uses: docker/login-action@v2 - with: - registry: public.ecr.aws - env: - AWS_REGION: us-east-1 + - uses: aws-actions/amazon-ecr-login@v1 + id: ecr_login - run: | DOCKER_BUILDKIT=1 docker build -t lerna -f tilt_devnet/docker_images/Dockerfile.lerna . DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f governance/xc_admin/Dockerfile . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG env: - ECR_REGISTRY: public.ecr.aws - ECR_REPOSITORY: pyth-network/xc-admin + ECR_REGISTRY: ${{ steps.ecr_login.outputs.registry }} + ECR_REPOSITORY: xc-admin