From 92c40cc2f9fe6105713d88bebca8033df99d1622 Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Tue, 6 Jul 2021 20:24:11 +0200 Subject: [PATCH] ci: no docker login on pr (#7) --- .github/workflows/release-container-image.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-container-image.yaml b/.github/workflows/release-container-image.yaml index c8ccd38..319c786 100644 --- a/.github/workflows/release-container-image.yaml +++ b/.github/workflows/release-container-image.yaml @@ -65,12 +65,14 @@ 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 @@ -78,6 +80,7 @@ jobs: 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