From ade889679bdb83722be30305b16caee62f285d3c Mon Sep 17 00:00:00 2001 From: Maximilian Geberl <48486938+dergeberl@users.noreply.github.com> Date: Tue, 12 Apr 2022 12:38:24 +0200 Subject: [PATCH] disable docker login in gh action on PRs --- .github/workflows/container.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index b7c20bc..c4a9108 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -49,12 +49,14 @@ jobs: version: latest - name: Login to GitHub Container Registry uses: docker/login-action@v1 + if: ${{ github.event_name != 'pull_request' }} with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.REGISTRY }} - name: Login to Docker Hub uses: docker/login-action@v1 + if: ${{ github.event_name != 'pull_request' }} with: username: ${{ github.repository_owner }} password: ${{ secrets.DOCKER_HUB_TOKEN }}