Skip to content

Commit

Permalink
feat: Automatically build tagged images if tag exists
Browse files Browse the repository at this point in the history
  • Loading branch information
pagbrl committed Oct 18, 2024
1 parent e2b54d5 commit a628928
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ jobs:
--push \
--platform=linux/amd64,linux/arm64,linux/armhf \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest -f ./Dockerfile ./
- name: Also create tagged image if tag exists
if: ${{ github.ref == 'refs/heads/main' }}
run: |
docker buildx build \
--push \
--platform=linux/amd64,linux/arm64,linux/armhf \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} -f ./Dockerfile ./

0 comments on commit a628928

Please sign in to comment.