From 3f9051e01dc5dce6f38b63a140c8b5e1d7904ac5 Mon Sep 17 00:00:00 2001 From: Bill Buchan Date: Thu, 9 Jan 2025 14:32:11 +0000 Subject: [PATCH] Tag image --- .github/workflows/oracle-observer-image-build.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/oracle-observer-image-build.yml b/.github/workflows/oracle-observer-image-build.yml index e2c04383..37ffa903 100644 --- a/.github/workflows/oracle-observer-image-build.yml +++ b/.github/workflows/oracle-observer-image-build.yml @@ -194,17 +194,11 @@ jobs: path: /tmp - name: Load and retag image for publish - run: | - docker load --input /tmp/oracle-observer-image.tar - docker tag delius-core-oracle-observer:${{ github.sha }} 374269020027.dkr.ecr.eu-west-2.amazonaws.com/delius-core-oracle-observer:${{ github.run_id }}-${{ github.run_attempt }} - - - name: Log into ghcr - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + run: docker tag /tmp/oracle-observer-image.tar 374269020027.dkr.ecr.eu-west-2.amazonaws.com/delius-core-oracle-observer:${{ github.run_id }}-${{ github.run_attempt }} + - name: Login to ECR + run: aws ecr get-login-password --region eu-west-2 | docker login --username AWS --password-stdin 374269020027.dkr.ecr.eu-west-2.amazonaws.com + - name: Publish image run: docker push 374269020027.dkr.ecr.eu-west-2.amazonaws.com/delius-core-oracle-observer:${{ github.run_id }}-${{ github.run_attempt }}, 374269020027.dkr.ecr.eu-west-2.amazonaws.com/delius-core-oracle-observer:latest