Skip to content

Commit

Permalink
jsp: If on a PR, just do a Docker build to make sure we can.
Browse files Browse the repository at this point in the history
- push only on a tag (which will have the right creds)

#1007
  • Loading branch information
srl295 committed Jan 28, 2025
1 parent f991112 commit 383be3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-jsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,23 @@ 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:
context: UnicodeJsps/
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
Expand Down

0 comments on commit 383be3a

Please sign in to comment.