From 1ea0c66580638a966da974ad2bf8fa6671f96c02 Mon Sep 17 00:00:00 2001 From: darefjev44 <71537609+darefjev44@users.noreply.github.com> Date: Sat, 20 Apr 2024 14:42:48 +0100 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 121832da6..8959da7ab 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -52,6 +52,11 @@ jobs: - name: Login to Amazon ECR id: login-ecr uses: aws-actions/amazon-ecr-login@v1 + + - name: Tag the image for ECR + run: | + docker tag ghcr.io/${{ github.repository }}/spring-petclinic:latest ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/spring-petclinic:latest + - name: Push image to Amazon ECR run: docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/spring-petclinic:latest