Skip to content

Commit

Permalink
Tag image
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-buchan committed Jan 9, 2025
1 parent 217abd0 commit 3f9051e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/oracle-observer-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3f9051e

Please sign in to comment.