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