From 47f104d4432b7b8fe4952ba1c14a28ed229609d8 Mon Sep 17 00:00:00 2001 From: SamuelQuetin <45669569+SamuelQuetin@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:06:35 +0200 Subject: [PATCH] Update build-test-pubtodockerhub.yml --- .github/workflows/build-test-pubtodockerhub.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-pubtodockerhub.yml b/.github/workflows/build-test-pubtodockerhub.yml index 3d358ef..5685f4b 100644 --- a/.github/workflows/build-test-pubtodockerhub.yml +++ b/.github/workflows/build-test-pubtodockerhub.yml @@ -32,11 +32,11 @@ jobs: with: images: ${{ env.DOCKERHUB_IMAGE_PREFIX }} - name: "Push: login to DockerHub" - if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/main-old' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/develop-old' || startsWith(github.ref, 'refs/tags/')) run: | echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin - name: "Push: push docker image" - if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/main-old' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/develop-old' || startsWith(github.ref, 'refs/tags/')) run: | DOCKER_TAGS="${{ steps.docker_tag_meta.outputs.tags }}" for DOCKER_TAG in $DOCKER_TAGS