Skip to content

Commit

Permalink
Use the same docker image for x86 and arm builds of desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
dantecatalfamo committed Jun 24, 2024
1 parent 69aa510 commit 13218ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
15 changes: 0 additions & 15 deletions Dockerfile-desktop-linux-arm64

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,10 @@ desktop-linux:
#
# Output: desktop.tar.gz
desktop-linux-arm64:
docker build -f Dockerfile-desktop-linux-arm64 -t desktop-linux-builder-arm64 .
docker run --rm -v $(shell pwd):/output desktop-linux-builder-arm64 /bin/bash -c "\
docker build -f Dockerfile-desktop-linux -t desktop-linux-builder .
docker run --rm -v $(shell pwd):/output desktop-linux-builder /bin/bash -c "\
mkdir /output/fleet-desktop && \
go build -o /output/fleet-desktop/fleet-desktop -ldflags "-X=main.version=$(FLEET_DESKTOP_VERSION)" /usr/src/fleet/orbit/cmd/desktop && \
GOARCH=arm64 go build -o /output/fleet-desktop/fleet-desktop -ldflags "-X=main.version=$(FLEET_DESKTOP_VERSION)" /usr/src/fleet/orbit/cmd/desktop && \
cd /output && \
tar czf desktop.tar.gz fleet-desktop && \
rm -r fleet-desktop"
Expand Down

0 comments on commit 13218ad

Please sign in to comment.