✨ Move Upload button to SBOM|Advisory List page (#501) #167
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: 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 |