Skip to content

Commit

Permalink
Merge pull request #7 from canonical/KU-158/arm-builder
Browse files Browse the repository at this point in the history
Attempt builds on arm64 workers
  • Loading branch information
addyess authored Feb 20, 2024
2 parents b66ac22 + aa32474 commit 157d556
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ jobs:
trivy-image-config: "trivy.yaml"
multiarch-awareness: true
cache-action: ${{ (github.event_name == 'push') && 'save' || 'restore' }}
platform-labels: '{"arm64": ["Ubuntu_ARM64_4C_16G_01"]}'
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
Expand Down
3 changes: 1 addition & 2 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ base: bare
build-base: ubuntu@22.04
platforms:
amd64:
# TODO: Add after workflows support bulding arm64 ROCKs
# arm64:
arm64:

services:
coredns:
Expand Down

0 comments on commit 157d556

Please sign in to comment.