Skip to content

Commit

Permalink
Update docker-build.yml: add a step to pull and push images after the…
Browse files Browse the repository at this point in the history
… build, based on the platform.
  • Loading branch information
realashleybailey committed Oct 5, 2023
1 parent b5d03b9 commit 4935022
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ jobs:
context: .
file: ./Dockerfile
push: false # Do not push at this stage
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}-${{ matrix.platform }}
platforms: ${{ matrix.platform }}

push_images:
needs: build
runs-on: ubuntu-latest
steps:
- name: Pull and Push Images
run: |
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}-linux/amd64
Expand Down

0 comments on commit 4935022

Please sign in to comment.