-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (41 loc) · 1001 Bytes
/
manager-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build manager 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: runtime-class-manager
dockerfile: ./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: runtime-class-manager
image-digest: ${{ needs.build.outputs.digest }}