Don't bother with docker login if we're not gonna push.

This commit is contained in:
Greyscale 2024-02-12 18:22:49 +01:00
parent 7f4cc68389
commit 8c0d0a6d8c
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2
9 changed files with 24 additions and 0 deletions

View file

@ -59,12 +59,14 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -61,12 +61,14 @@ jobs:
- uses: docker/setup-buildx-action@v3
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -140,12 +142,14 @@ jobs:
- uses: docker/setup-buildx-action@v3
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -206,12 +210,14 @@ jobs:
- "ghcr.io/benzine-framework/marshall"
steps:
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -68,12 +68,14 @@ jobs:
mitm-proxy
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -38,12 +38,14 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -30,12 +30,14 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -44,12 +44,14 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -74,12 +74,14 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -139,12 +141,14 @@ jobs:
- "ghcr.io/benzine-framework/php"
steps:
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -51,12 +51,14 @@ jobs:
redis
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -39,12 +39,14 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io