Skip to content

Commit

Permalink
Only perform docker login on a release
Browse files Browse the repository at this point in the history
marcofranssen committed Sep 30, 2021
1 parent 94901cb commit 291bb60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
@@ -55,6 +55,7 @@ jobs:
fetch-depth: 0

- name: Login to DockerHub Registry
if: startsWith(github.ref, 'refs/tags/')
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin

- name: Set release variables

0 comments on commit 291bb60

Please sign in to comment.