diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 320164b..58c3139 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,6 +61,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.BLIBLA_SEMANTIC_RELEASE }} - name: Set environment variables + if: steps.semanticrelease.outputs.new-release-published == 'true' run: | echo "DOCKERHUB_REPO=${{ vars.DOCKERHUB_REPO }}" >> $GITHUB_ENV echo "DOCKERHUB_IMG=${{ vars.DOCKERHUB_IMG }}" >> $GITHUB_ENV @@ -68,6 +69,7 @@ jobs: echo "RELEASE_VERSION=${{ steps.semanticrelease.outputs.release-version }}" >> $GITHUB_ENV - name: Build and push the images to Docker Hub + if: steps.semanticrelease.outputs.new-release-published == 'true' uses: docker/bake-action@v2 with: push: true