Skip to content

Commit

Permalink
go back
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Dec 27, 2024
1 parent 116d908 commit a0c0e5a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ jobs:

- name: Build and push Docker image
env:
ECR_REGISTRY: ${{ github.ref == 'refs/heads/master' && secrets.ECR_REGISTRY_WWW || secrets.ECR_REGISTRY_WWW_STAGING }}
ECR_REPOSITORY: ${{ github.ref == 'refs/heads/master' && secrets.ECR_REPOSITORY_WWW || secrets.ECR_REPOSITORY_WWW_STAGING }}
IMAGE_TAG: latest
run: |
docker build \
-t "${{ github.ref == 'refs/heads/master' && secrets.ECR_REGISTRY_WWW || secrets.ECR_REGISTRY_WWW_STAGING }}/${{ github.ref == 'refs/heads/master' && secrets.ECR_REPOSITORY_WWW || secrets.ECR_REPOSITORY_WWW_STAGING }}:$IMAGE_TAG" \
-f docker/Dockerfile .
docker push "$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f docker/Dockerfile .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
- name: Download task definition
run: |
Expand Down

0 comments on commit a0c0e5a

Please sign in to comment.