GitHub Actions: Step updates and run filters

v5
Jéluchu 9 months ago
parent 7d8aba8234
commit bf93194dc8

@ -13,6 +13,9 @@ on:
branches: [ v5 ] branches: [ v5 ]
tags: tags:
- '[0-9]+.[0-9]+.[0-9]+' - '[0-9]+.[0-9]+.[0-9]+'
paths:
- 'src/*'
- '!src/main/resources/*'
jobs: jobs:
build-and-push: build-and-push:
@ -82,7 +85,7 @@ jobs:
# Step 6: Build and publish to Docker Hub and GitHub Container Registry # Step 6: Build and publish to Docker Hub and GitHub Container Registry
- name: Build and publish - name: Build and publish
id: push id: push
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: . context: .
push: true push: true
@ -94,10 +97,10 @@ jobs:
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
#github-token: ${{ secrets.GHCR_TOKEN }} #github-token: ${{ secrets.GHCR_TOKEN }}
# Step 7: Generate artifact attestation ## Step 7: Generate artifact attestation
- name: Generate artifact attestation #- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1 # uses: actions/attest-build-provenance@v1
with: # with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} # subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }} # subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true # push-to-registry: true
Loading…
Cancel
Save