-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.31 KB
/
build_harbor_sbom_browser.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
name: Build SBOM browser docker image
on:
workflow_dispatch:
permissions:
id-token: write
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
-
name: Login to Stackable Harbor
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
registry: oci.stackable.tech
username: robot$stackable+github-action-build
password: ${{ secrets.HARBOR_ROBOT_STACKABLE_GITHUB_ACTION_BUILD_SECRET }}
-
name: Set up Cosign
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # tag=v3.3.0
-
name: Build and push
id: build-and-push
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
with:
context: ./tools/harbor-sbom-browser
file: ./tools/harbor-sbom-browser/Dockerfile
push: true
tags: oci.stackable.tech/stackable/harbor-sbom-browser:0.0.0-dev
build-args: |
REVISION=${{ github.sha }}
VERSION=dev
-
name: Sign the published image
run: cosign sign -y oci.stackable.tech/stackable/harbor-sbom-browser@${{ steps.build-and-push.outputs.digest }}