All 2.10.2 ROCKs #32
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: | |
build-and-push-arch-specifics: | |
name: Build Rocks and Push Arch Specific Images | |
# HACK(aznashwan): replace with upstream canonical-owned | |
# workflow once github.com/canonical/k8s-workflows/pull/13 merges. | |
uses: aznashwan/k8s-workflows/.github/workflows/build_rocks.yaml@main | |
with: | |
owner: ${{ github.repository_owner }} | |
trivy-image-config: "trivy.yaml" | |
multiarch-awareness: true | |
cache-action: ${{ (github.event_name == 'push') && 'save' || 'restore' }} | |
# pinning to use rockcraft 1.3.0 feature `entrypoint-service` | |
rockcraft-revisions: '{"amd64": "1783", "arm64": "1784"}' | |
arch-skipping-maximize-build-space: '["arm64"]' | |
platform-labels: '{"arm64": ["Ubuntu_ARM64_4C_16G_01"]}' | |
run-tests: | |
# HACK(aznashwan): replace with upstream canonical-owned | |
# workflow once github.com/canonical/k8s-workflows/pull/15 merges. | |
uses: aznashwan/k8s-workflows/.github/workflows/run_tests.yaml@main | |
needs: [build-and-push-arch-specifics] | |
secrets: inherit | |
with: | |
rock-metas: ${{ needs.build-and-push-arch-specifics.outputs.rock-metas }} | |
scan-images: | |
uses: canonical/k8s-workflows/.github/workflows/scan_images.yaml@main | |
needs: [build-and-push-arch-specifics] | |
secrets: inherit | |
with: | |
upload-result: ${{ github.event_name == 'push' }} | |
images: ${{ needs.build-and-push-arch-specifics.outputs.images }} | |
trivy-image-config: ./trivy.yaml | |
build-and-push-multiarch-manifest: | |
name: Combine Rocks and Push Multiarch Manifest | |
uses: canonical/k8s-workflows/.github/workflows/assemble_multiarch_image.yaml@main | |
needs: [build-and-push-arch-specifics, run-tests, scan-images] | |
with: | |
rock-metas: ${{ needs.build-and-push-arch-specifics.outputs.rock-metas }} | |
dry-run: ${{ github.event_name != 'push' }} |