|
7 | 7 | paths: |
8 | 8 | - deploy/helm/Chart.yaml |
9 | 9 | workflow_dispatch: |
| 10 | + inputs: |
| 11 | + skip-e2e: |
| 12 | + description: Skip e2e tests |
| 13 | + type: boolean |
| 14 | + default: false |
10 | 15 |
|
11 | 16 | concurrency: |
12 | 17 | group: ${{ github.workflow }} |
@@ -59,15 +64,19 @@ jobs: |
59 | 64 |
|
60 | 65 | e2e: |
61 | 66 | needs: build-image |
62 | | - if: ${{ needs.detect.outputs.skip == 'false' }} |
| 67 | + if: needs.detect.outputs.skip == 'false' && !inputs['skip-e2e'] |
63 | 68 | uses: ./.github/workflows/_reusable-e2e.yaml |
64 | 69 | with: |
65 | 70 | image_tag: ${{ github.sha }} |
66 | 71 | secrets: inherit |
67 | 72 |
|
68 | 73 | release: |
69 | 74 | needs: [detect, build-image, e2e] |
70 | | - if: ${{ needs.detect.outputs.skip == 'false' }} |
| 75 | + if: >- |
| 76 | + always() && |
| 77 | + needs.detect.outputs.skip == 'false' && |
| 78 | + needs.build-image.result == 'success' && |
| 79 | + (needs.e2e.result == 'success' || needs.e2e.result == 'skipped') |
71 | 80 | runs-on: ubuntu-24.04 |
72 | 81 | permissions: |
73 | 82 | contents: write |
@@ -102,19 +111,20 @@ jobs: |
102 | 111 | DIGEST=$(oras resolve "$IMAGE") |
103 | 112 | cosign sign --yes "${{ env.REGISTRY }}/${{ github.repository }}@${DIGEST}" |
104 | 113 |
|
105 | | - # - name: Generate SBOM |
106 | | - # uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0 |
107 | | - # with: |
108 | | - # image: ${{ env.REGISTRY }}/${{ github.repository }}:${{ needs.detect.outputs.app_version }} |
109 | | - # format: spdx-json |
110 | | - # output-file: sbom.spdx.json |
111 | | - # upload-artifact: false |
112 | | - # upload-release-assets: false |
113 | | - |
114 | | - # - name: Attest SBOM |
115 | | - # run: | |
116 | | - # IMAGE="${{ env.REGISTRY }}/${{ github.repository }}:${{ needs.detect.outputs.app_version }}" |
117 | | - # cosign attest --yes --type spdx --predicate sbom.spdx.json "$IMAGE" |
| 114 | + - name: Generate SBOM |
| 115 | + uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0 |
| 116 | + with: |
| 117 | + image: ${{ env.REGISTRY }}/${{ github.repository }}:${{ needs.detect.outputs.app_version }} |
| 118 | + format: spdx-json |
| 119 | + output-file: sbom.spdx.json |
| 120 | + upload-artifact: false |
| 121 | + upload-release-assets: false |
| 122 | + |
| 123 | + - name: Attest SBOM |
| 124 | + run: | |
| 125 | + IMAGE="${{ env.REGISTRY }}/${{ github.repository }}:${{ needs.detect.outputs.app_version }}" |
| 126 | + DIGEST=$(oras resolve "$IMAGE") |
| 127 | + cosign attest --yes --type spdxjson --predicate sbom.spdx.json "${{ env.REGISTRY }}/${{ github.repository }}@${DIGEST}" |
118 | 128 |
|
119 | 129 | - name: Get release notes |
120 | 130 | run: make release-notes TAG="${{ needs.detect.outputs.app_version }}" > .release_notes |
|
0 commit comments