From aefb69498691c656b35febf0485d923b222ec0a5 Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Mon, 8 Jul 2024 12:50:17 -0400 Subject: [PATCH] login only when we need to push the images Signed-off-by: Florent Poinsard --- .github/workflows/docker_build_images.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker_build_images.yml b/.github/workflows/docker_build_images.yml index 7bb77563964..e141b5a9803 100644 --- a/.github/workflows/docker_build_images.yml +++ b/.github/workflows/docker_build_images.yml @@ -39,6 +39,7 @@ jobs: uses: actions/checkout@v4 - name: Login to Docker Hub + if: steps.skip-push.outputs.skip-push == 'true' uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} @@ -113,6 +114,7 @@ jobs: uses: actions/checkout@v4 - name: Login to Docker Hub + if: steps.skip-push.outputs.skip-push == 'true' uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }}