Skip to content

Commit

Permalink
Docker login only when releasing a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Oct 8, 2021
1 parent c58bede commit 9e0393c
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
Expand Up @@ -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
Expand Down

0 comments on commit 9e0393c

Please sign in to comment.