Merge pull request #259 from spinkube/dependabot/docker/images/instal… #149
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build installer image, sign it, and generate SBOMs | |
| permissions: | |
| contents: read | |
| on: | |
| workflow_call: | |
| outputs: | |
| digest: | |
| description: "Container image digest" | |
| value: ${{jobs.build.outputs.digest}} | |
| push: | |
| branches: | |
| - "main" | |
| - "feat-**" | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/container-image.yml | |
| permissions: | |
| contents: read | |
| packages: write | |
| with: | |
| image-name: node-installer | |
| dockerfile: ./images/installer/Dockerfile | |
| push-image: true | |
| sign: | |
| needs: build | |
| uses: ./.github/workflows/sign-image.yml | |
| permissions: | |
| packages: write | |
| id-token: write | |
| with: | |
| image-repository: ${{ needs.build.outputs.repository }} | |
| image-digest: ${{ needs.build.outputs.digest }} | |
| sbom: | |
| needs: build | |
| uses: ./.github/workflows/sbom.yml | |
| permissions: | |
| packages: write | |
| id-token: write | |
| with: | |
| image-name: node-installer | |
| image-digest: ${{ needs.build.outputs.digest }} |