diff --git a/.github/workflows/build-test-pubtodockerhub.yml b/.github/workflows/build-test-pubtodockerhub.yml index 693327e2..15294469 100644 --- a/.github/workflows/build-test-pubtodockerhub.yml +++ b/.github/workflows/build-test-pubtodockerhub.yml @@ -33,11 +33,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-old' || github.ref == 'refs/heads/develop-old' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || 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-old' || github.ref == 'refs/heads/develop-old' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) run: | DOCKER_TAGS="${{ steps.docker_tag_meta.outputs.tags }}" for DOCKER_TAG in $DOCKER_TAGS