Skip to content

Commit

Permalink
ci: Build full-exporter images
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Nov 4, 2021
1 parent e0a2b24 commit 6e5c1ef
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/export-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ jobs:
working-directory: data-serving/scripts/export-data
env:
CONN: ${{ secrets.EXPORT_CONN_PROD }}
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: gdh-country-exporter
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPO_COUNTRY: gdh-country-exporter
REPO_FULL: gdh-full-exporter
IMAGE_TAG: ${{ github.sha }}
run: |
docker build --build-arg CONN -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker build --build-arg CONN -t $REGISTRY/$REPO_COUNTRY:$IMAGE_TAG -t $REGISTRY/$REPO_COUNTRY .
docker push $REGISTRY/$REPO_COUNTRY:$IMAGE_TAG
docker push $REGISTRY/$REPO_COUNTRY:latest
docker build -f ./Dockerfile_full_export -t $REGISTRY/$REPO_FULL:$IMAGE_TAG -t $REGISTRY/$REPO_FULL
docker push $REGISTRY/$REPO_FULL:$IMAGE_TAG
docker push $REGISTRY/$REPO_FULL:latest

0 comments on commit 6e5c1ef

Please sign in to comment.