Skip to content

Commit

Permalink
Merge pull request #115 from kuskoman/login-to-gh-registry-on-master-…
Browse files Browse the repository at this point in the history
…and-tags

Login to ghcr only on master and tags
  • Loading branch information
kuskoman authored May 5, 2023
2 parents 3cc5046 + d3dd394 commit e8443a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/go-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ jobs:
retention-days: 1

- name: Login to GitHub registry
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
run: echo ${{ secrets.GH_PAT }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin

- name: Login to Docker Hub
Expand Down

0 comments on commit e8443a3

Please sign in to comment.