Skip to content

Commit

Permalink
feat: releases only come from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualroot committed Jul 27, 2023
1 parent 2d16768 commit 1cad42f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ jobs:

- name: Login to Docker Hub
uses: docker/login-action@v2
if: github.ref == 'refs/heads/main'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push Docker image
if: github.ref == 'refs/heads/main'
run: docker buildx bake --push ${{ matrix.image }}

0 comments on commit 1cad42f

Please sign in to comment.