|
| 1 | +name: release |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + |
| 8 | +permissions: |
| 9 | + contents: write |
| 10 | + id-token: write |
| 11 | + issues: write |
| 12 | + packages: write |
| 13 | + pull-requests: write |
| 14 | + attestations: write |
| 15 | + |
| 16 | +concurrency: |
| 17 | + group: release-${{ github.ref }} |
| 18 | + cancel-in-progress: false |
| 19 | + |
| 20 | +jobs: |
| 21 | + lint: |
| 22 | + uses: platform-mesh/.github/.github/workflows/job-golang-lint.yml@main |
| 23 | + with: |
| 24 | + useTask: true |
| 25 | + |
| 26 | + test: |
| 27 | + uses: platform-mesh/.github/.github/workflows/job-golang-test-source.yml@main |
| 28 | + secrets: inherit |
| 29 | + with: |
| 30 | + useTask: true |
| 31 | + useLocalCoverageConfig: true |
| 32 | + |
| 33 | + create-version: |
| 34 | + uses: platform-mesh/.github/.github/workflows/job-create-version.yml@main |
| 35 | + secrets: inherit |
| 36 | + |
| 37 | + docker-build-push: |
| 38 | + needs: [create-version, lint, test] |
| 39 | + uses: platform-mesh/.github/.github/workflows/job-docker-build-push.yml@main |
| 40 | + with: |
| 41 | + imageTagName: ghcr.io/platform-mesh/security-operator |
| 42 | + version: ${{ needs.create-version.outputs.version }} |
| 43 | + multiarch: true |
| 44 | + secrets: inherit |
| 45 | + |
| 46 | + update-version: |
| 47 | + needs: [create-version, docker-build-push] |
| 48 | + uses: platform-mesh/.github/.github/workflows/job-chart-version-update.yml@main |
| 49 | + secrets: inherit |
| 50 | + with: |
| 51 | + appVersion: ${{ needs.create-version.outputs.version }} |
| 52 | + chart: security-operator |
| 53 | + targetRepository: platform-mesh/helm-charts |
| 54 | + |
| 55 | + sbom: |
| 56 | + needs: [create-version, docker-build-push] |
| 57 | + uses: platform-mesh/.github/.github/workflows/job-sbom.yml@main |
| 58 | + with: |
| 59 | + imageReference: ghcr.io/platform-mesh/security-operator:${{ needs.create-version.outputs.version }} |
| 60 | + |
| 61 | + image-ocm: |
| 62 | + needs: [create-version, docker-build-push, sbom] |
| 63 | + uses: platform-mesh/.github/.github/workflows/job-image-ocm.yml@main |
| 64 | + secrets: inherit |
| 65 | + with: |
| 66 | + imageReference: ghcr.io/platform-mesh/security-operator:${{ needs.create-version.outputs.version }} |
| 67 | + appVersion: ${{ needs.create-version.outputs.version }} |
| 68 | + repoName: security-operator |
| 69 | + commit: ${{ github.sha }} |
0 commit comments