Skip to content

Commit

Permalink
login to Docker registries only when pushing a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Apr 1, 2024
1 parent e7e015b commit 13da5a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -101,11 +101,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down

0 comments on commit 13da5a1

Please sign in to comment.