Add GH actions to assemble a multiarch manifest for amd64 rocks #38
Workflow file for this run
This file contains 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: Push Multiarch Images | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
get-runner-image: | |
name: Get runner image | |
uses: canonical/operator-workflows/.github/workflows/get_runner_image.yaml@main | |
with: | |
working-directory: ${{ inputs.working-directory }} | |
build-and-push-arch-specifics: | |
name: Push Arch Specific Images | |
uses: ./.github/workflows/build_rocks.yaml | |
needs: [get-runner-image] | |
with: | |
owner: ${{ github.repository_owner }} | |
registry: ghcr.io | |
runs-on: ${{ needs.get-runner-image.outputs.runs-on }} | |
trivy-image-config: "trivy.yaml" | |
working-directory: ${{ inputs.working-directory }} | |
multiarch-awareness: true | |
cache-action: ${{ (github.event_name == 'push') && 'save' || 'restore' }} | |
build-and-push-multiarch-manifest: | |
name: Push Multiarch Manifest | |
uses: ./.github/workflows/assemble_multiarch_image.yaml | |
needs: [build-and-push-arch-specifics] | |
with: | |
rock-metas: ${{ needs.build-and-push-arch-specifics.outputs.rock-metas }} | |
registry: ghcr.io | |
dry-run: ${{ github.event_name != 'push' }} |