Skip to content

Commit

Permalink
Build the worker image too
Browse files Browse the repository at this point in the history
  • Loading branch information
dotemacs committed Jul 25, 2024
1 parent 1e2c1eb commit 571dc83
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build_image.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and upload docker image
name: Build and upload docker images

on:
push:
Expand Down Expand Up @@ -40,3 +40,12 @@ jobs:
docker build -f docker/web/Dockerfile -t ${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} .
docker tag ${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
docker push ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
- name: Build worker, tag, and push docker image to Amazon ECR
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: "fb-worker"
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -f docker/workers/Dockerfile -t ${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} .
docker tag ${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
docker push ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}

0 comments on commit 571dc83

Please sign in to comment.