Skip to content

Commit

Permalink
Fix-darwin-arm-release (#237)
Browse files Browse the repository at this point in the history
* fix darwin arm release

* typo release name
  • Loading branch information
jt-dd authored Aug 2, 2024
1 parent 468926c commit b7c6305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: compose
name: kubehound
path: ./bin/release/*
if-no-files-found: error

Expand All @@ -105,7 +105,7 @@ jobs:
name: Download artifacts
uses: actions/download-artifact@v3
with:
name: compose
name: kubehound
path: bin/release
-
name: Create checksums
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ RUN --mount=from=binary \
mkdir -p /out && \
# TODO: should just use standard arch
TARGETARCH=$([ "$TARGETARCH" = "amd64" ] && echo "x86_64" || echo "$TARGETARCH"); \
TARGETARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "$TARGETARCH"); \
# Use arm64 for darwin
TARGETARCH=$([ "$TARGETARCH" = "arm64" ] && [ "$TARGETOS" != "darwin" ] && echo "aarch64" || echo "$TARGETARCH"); \
cp kubehound* "/out/kubehound-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}$(ls kubehound* | sed -e 's/^kubehound//')"

FROM scratch AS release
Expand Down

0 comments on commit b7c6305

Please sign in to comment.