Skip to content

Commit bab8063

Browse files
committed
Add push to APHL ECR to docker-image-push.yml
1 parent 6595780 commit bab8063

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/docker-image-push.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,18 @@ jobs:
8585
labels: ${{ steps.meta.outputs.labels }}
8686
cache-from: type=gha
8787
cache-to: type=gha,mode=max
88+
89+
- name: Login to APHL ECR
90+
if: ${{ matrix.name != 'index' }}
91+
uses: docker/login-action@v4
92+
with:
93+
registry: ${{ secrets.APHL_ECR_REPOSITORY_URL }}
94+
username: ${{ secrets.APHL_AWS_ACCESS_KEY_ID }}
95+
password: ${{ secrets.APHL_AWS_SECRET_ACCESS_KEY }}
96+
97+
- name: Push to APHL ECR
98+
if: ${{ matrix.name != 'index' }}
99+
run: |
100+
GHCR_IMAGE="ghcr.io/${{ steps.repo.outputs.owner }}/dibbs-text-to-code/${{ matrix.name }}:latest"
101+
ECR_IMAGE="${{ secrets.APHL_ECR_REPOSITORY_URL }}/${{ matrix.name }}:latest"
102+
docker buildx imagetools create --tag "$ECR_IMAGE" "$GHCR_IMAGE"

0 commit comments

Comments
 (0)