From 02114c130a666742be52b1783899a35e70fd6d74 Mon Sep 17 00:00:00 2001 From: timam Date: Thu, 16 May 2024 17:17:18 +0600 Subject: [PATCH] Update Docker build and push commands in Github Actions The commit updates the Docker build and push commands within the Github Actions workflow file. The update specifies hardcoding the image name as 'demo-awscd-2024' and --- .github/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6682fd8..95f07c4 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -25,5 +25,5 @@ jobs: - name: Build, tag, and push image to Amazon ECR run: | cd demo/lambda/src - docker build -t ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:$GITHUB_SHA -f Dockerfile . - docker push ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:$GITHUB_SHA \ No newline at end of file + docker build -t ${{ steps.login-ecr.outputs.registry }}/demo-awscd-2024:$GITHUB_SHA -f Dockerfile . + docker push ${{ steps.login-ecr.outputs.registry }}/demo-awscd-2024:$GITHUB_SHA \ No newline at end of file