forked from openebs/rawfile-localpv
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Craft multiarch manifests on gh push for all arches defined in rockcr…
…aft.yaml
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Push Multiarch Images | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- rockcraft | ||
|
||
jobs: | ||
build-and-push-arch-specifics: | ||
name: Build Rocks and Push Arch Specific Images | ||
uses: canonical/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' }} | ||
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] | ||
with: | ||
rock-metas: ${{ needs.build-and-push-arch-specifics.outputs.rock-metas }} | ||
dry-run: ${{ github.event_name != 'push' }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
timeout: 20m | ||
scan: | ||
offline-scan: true |