diff --git a/.github/workflows/build-jsp.yml b/.github/workflows/build-jsp.yml index 665ff9b61..0d998eda7 100644 --- a/.github/workflows/build-jsp.yml +++ b/.github/workflows/build-jsp.yml @@ -95,6 +95,7 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image + if: github.event_name != 'pull_request' id: push uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: @@ -102,6 +103,15 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + - name: Build and Docker image (PR) + if: github.event_name == 'pull_request' + id: builddocker + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + with: + context: UnicodeJsps/ + push: false + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} - name: Generate artifact attestation if: github.event_name != 'pull_request' uses: actions/attest-build-provenance@v2