Skip to content

Add GH actions to assemble a multiarch manifest for amd64 rocks (#4) #39

Add GH actions to assemble a multiarch manifest for amd64 rocks (#4)

Add GH actions to assemble a multiarch manifest for amd64 rocks (#4) #39

Workflow file for this run

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' }}