From bf93194dc831dd17827b619241c7c3f169262e43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Tue, 26 Nov 2024 12:01:25 +0100 Subject: [PATCH] GitHub Actions: Step updates and run filters --- .github/workflows/docker-deploy.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-deploy.yaml b/.github/workflows/docker-deploy.yaml index 5a2a8fe..4ac2034 100644 --- a/.github/workflows/docker-deploy.yaml +++ b/.github/workflows/docker-deploy.yaml @@ -13,6 +13,9 @@ on: branches: [ v5 ] tags: - '[0-9]+.[0-9]+.[0-9]+' + paths: + - 'src/*' + - '!src/main/resources/*' jobs: build-and-push: @@ -82,7 +85,7 @@ jobs: # Step 6: Build and publish to Docker Hub and GitHub Container Registry - name: Build and publish id: push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . push: true @@ -94,10 +97,10 @@ jobs: cache-to: type=gha,mode=max #github-token: ${{ secrets.GHCR_TOKEN }} - # Step 7: Generate artifact attestation - - name: Generate artifact attestation - uses: actions/attest-build-provenance@v1 - with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} - subject-digest: ${{ steps.push.outputs.digest }} - push-to-registry: true \ No newline at end of file + ## Step 7: Generate artifact attestation + #- name: Generate artifact attestation + # uses: actions/attest-build-provenance@v1 + # with: + # subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} + # subject-digest: ${{ steps.push.outputs.digest }} + # push-to-registry: true \ No newline at end of file