Skip to content

Commit

Permalink
chore: only push on master commit in docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
steveiliop56 authored Jul 31, 2024
1 parent bb760ab commit d6bce7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
         username: ${{ github.repository_owner }}
         password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
- name: Build image and push if commit on master
       uses: docker/build-push-action@v6
       with:
        context: .
         platforms: linux/amd64, linux/arm64
         push: true
         push: ${{ github.ref == 'refs/heads/master' }}
         tags: ghcr.io/havenweb/haven:${{ steps.get_tag.outputs.tagname }}, ghcr.io/havenweb/haven:latest


0 comments on commit d6bce7a

Please sign in to comment.