diff --git a/.github/workflows/lumigator_pipeline.yaml b/.github/workflows/lumigator_pipeline.yaml index 0ce3db139..befe859b0 100644 --- a/.github/workflows/lumigator_pipeline.yaml +++ b/.github/workflows/lumigator_pipeline.yaml @@ -155,7 +155,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - if: steps.filter.outputs.rebuild == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/') + if: steps.filter.outputs.rebuild == 'true' || contains(github.ref, 'refs/tags/') uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} @@ -166,7 +166,7 @@ jobs: uses: docker/build-push-action@v6 with: platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/') }} + push: true target: "main_image" tags: | ${{ contains(github.ref, 'refs/tags/') == false && format('mzdotai/lumigator:backend_dev_{0}', env.GITHUB_SHA_SHORT) || '' }}