From 45ecda63bb1a24b5f60dc6ac034170f2c02e1b8f Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 7 Dec 2023 16:22:05 +1100 Subject: [PATCH] ci(release): don't trigger on tag push --- .github/workflows/release-notation.yaml | 10 +++++----- .github/workflows/release.yml | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-notation.yaml b/.github/workflows/release-notation.yaml index b238805..850193c 100644 --- a/.github/workflows/release-notation.yaml +++ b/.github/workflows/release-notation.yaml @@ -98,9 +98,9 @@ jobs: flux tag artifact oci://ghcr.io/jasonthedeveloper/manifests/podinfo:${{ steps.prep.outputs.VERSION }} --tag latest - name: Sign OCI artifacts run: | - notation sign --signature-format cose ghcr.io/jasonthedeveloper/podinfo:${{ steps.prep.outputs.VERSION }} --yes - notation sign --signature-format cose ghcr.io/jasonthedeveloper/charts/podinfo:${{ steps.prep.outputs.VERSION }} --yes - notation sign --signature-format cose ghcr.io/jasonthedeveloper/manifests/podinfo:${{ steps.prep.outputs.VERSION }} --yes + notation sign --signature-format cose ghcr.io/jasonthedeveloper/podinfo:${{ steps.prep.outputs.VERSION }} + notation sign --signature-format cose ghcr.io/jasonthedeveloper/charts/podinfo:${{ steps.prep.outputs.VERSION }} + notation sign --signature-format cose ghcr.io/jasonthedeveloper/manifests/podinfo:${{ steps.prep.outputs.VERSION }} - name: Publish config artifact run: | flux push artifact oci://ghcr.io/jasonthedeveloper/podinfo-deploy:${{ steps.prep.outputs.VERSION }} \ @@ -110,5 +110,5 @@ jobs: flux tag artifact oci://ghcr.io/jasonthedeveloper/podinfo-deploy:${{ steps.prep.outputs.VERSION }} --tag latest - name: Sign config artifact run: | - notation sign --signature-format cose ghcr.io/jasonthedeveloper/podinfo-deploy:${{ steps.prep.outputs.VERSION }} --yes - notation sign --signature-format cose ghcr.io/jasonthedeveloper/podinfo-deploy:latest --yes + notation sign --signature-format cose ghcr.io/jasonthedeveloper/podinfo-deploy:${{ steps.prep.outputs.VERSION }} + notation sign --signature-format cose ghcr.io/jasonthedeveloper/podinfo-deploy:latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e8fb2e..210900c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,10 @@ name: release on: + pull_request: push: - tags: - - '*' + branches: + - 'master' permissions: contents: read