Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release-weekly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
if: ${{ matrix.os == 'macos-latest' }}
run: make TAG_NAME=${{ github.event.inputs.tag }} -f builder.Makefile build-mac-arm64

- name: Build Linux arm64 binary
if: ${{ matrix.os == 'ubuntu-latest' }}
run: make TAG_NAME=${{ github.event.inputs.tag }} -f builder.Makefile build-linux-arm64

- name: Upload binary artifact
if: ${{ github.event.inputs.tag != '' }} # don't push artifacts if no tag is specified
uses: actions/upload-artifact@v2
Expand Down
5 changes: 5 additions & 0 deletions builder.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ test-unit:

cross:
GOOS=linux GOARCH=amd64 $(GO_BUILD) -o dist/docker-scan_linux_amd64 ./cmd/docker-scan
GOOS=linux GOARCH=arm64 $(GO_BUILD) -o dist/docker-scan_linux_arm64 ./cmd/docker-scan
GOOS=darwin GOARCH=amd64 $(GO_BUILD) -o dist/docker-scan_darwin_amd64 ./cmd/docker-scan
GOOS=darwin GOARCH=arm64 $(GO_BUILD) -o dist/docker-scan_darwin_arm64 ./cmd/docker-scan
GOOS=windows GOARCH=amd64 $(GO_BUILD) -o dist/docker-scan_windows_amd64.exe ./cmd/docker-scan
Expand All @@ -69,6 +70,10 @@ build-mac-arm64:
mkdir -p bin
GOOS=darwin GOARCH=arm64 $(GO_BUILD) -o bin/docker-scan_darwin_arm64 ./cmd/docker-scan

build-linux-arm64:
mkdir -p bin
GOOS=linux GOARCH=arm64 $(GO_BUILD) -o bin/docker-scan_linux_arm64 ./cmd/docker-scan

.PHONY: build
build:
mkdir -p bin
Expand Down