-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: onyl build arm64; fix image-ref for Trivy
- Loading branch information
1 parent
d6c543a
commit 866db67
Showing
1 changed file
with
5 additions
and
3 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 |
---|---|---|
|
@@ -68,15 +68,16 @@ jobs: | |
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
# platforms: linux/amd64,linux/arm64 | ||
platforms: linux/arm64 | ||
push: false | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
with: | ||
image-ref: "ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.tags }}" | ||
image-ref: "ghcr.io/${{ github.repository }}:${{ github.sha }}" | ||
format: "sarif" | ||
output: "trivy-results.sarif" | ||
|
||
|
@@ -90,7 +91,8 @@ jobs: | |
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
# platforms: linux/amd64,linux/arm64 | ||
platforms: linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |