Skip to content

Commit

Permalink
push the correct image to ECR #1564
Browse files Browse the repository at this point in the history
  • Loading branch information
iamleeg committed Mar 4, 2022
1 parent 1211acc commit 63226f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ingestion-error-reporter-deploy.yml
Expand Up @@ -37,24 +37,24 @@ jobs:

- name: Build, tag, and push image to Amazon ECR (latest)
if: ${{ github.ref == 'refs/heads/main' }}
working-directory: ingestion/functions
working-directory: ingestion/monitoring
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: gdh-ingestor-error-reporter
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY -f Dockerfile-clean .
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY -f Dockerfile .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
- name: Build, tag, and push image to Amazon ECR (stable)
if: ${{ endsWith(github.ref, '-stable') }}
working-directory: ingestion/functions
working-directory: ingestion/monitoring
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: gdh-ingestor-error-monitor
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:stable -f Dockerfile-clean .
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:stable -f Dockerfile .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:stable

0 comments on commit 63226f0

Please sign in to comment.