Skip to content

Commit

Permalink
ci: no docker login on pr (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Jul 6, 2021
1 parent e722d91 commit 92c40cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release-container-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,22 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name != 'pull_request' }}

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
if: ${{ github.event_name != 'pull_request' }}

- name: Login to quay.io
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME}}
password: ${{ secrets.QUAY_ACCESS_TOKEN }}
if: ${{ github.event_name != 'pull_request' }}

- name: Build and push
id: docker_build_ghcr
Expand Down

0 comments on commit 92c40cc

Please sign in to comment.