Skip to content

Commit

Permalink
fix deploying script
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelxswe committed Apr 2, 2024
1 parent affe197 commit 17f41c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ jobs:

- name: Build, tag, and push image to Amazon ECR
run: |
ECR_REGISTRY=${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY=test
IMAGE_TAG=latest
IMAGE_URI="$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
docker build -t $IMAGE_URI .
IMAGE_NAME=app
IMAGE_URI="${ECR_REGISTRY}/${ECR_REPOSITORY}:${IMAGE_TAG}"
docker build -t $IMAGE_NAME .
docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_URI
docker push $IMAGE_URI

0 comments on commit 17f41c6

Please sign in to comment.