forked from guacsec/trustify-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (45 loc) · 1.32 KB
/
image-build.yaml
File metadata and controls
49 lines (45 loc) · 1.32 KB
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
48
49
name: Multiple Architecture Image Build
on:
workflow_dispatch:
push:
branches:
- "main"
- "release/*"
tags:
- "v*"
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
ui-image-build:
uses: trustification/release-tools/.github/workflows/build-push-images.yaml@main
with:
registry: "ghcr.io"
image_name: "${{ github.repository_owner }}/trustify-ui"
containerfile: "./Dockerfile"
architectures: '[ "amd64", "arm64" ]'
extra-args: "--ulimit nofile=4096:4096"
secrets:
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
attestations:
needs: ui-image-build
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
attestations: write
packages: write
steps:
- name: Log in to registry
uses: redhat-actions/podman-login@main
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
subject-name: ghcr.io/${{ github.repository_owner }}/trustify-ui
subject-digest: ${{ needs.ui-image-build.outputs.digest }}
push-to-registry: true