mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Allow reusing docker container for building desktop-linux. (#23424)
This commit is contained in:
parent
93b51f3ff3
commit
d4525d8b94
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -482,7 +482,7 @@ desktop-windows:
|
|||
desktop-linux:
|
||||
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 && \
|
||||
mkdir -p /output/fleet-desktop && \
|
||||
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 && \
|
||||
|
|
@ -497,7 +497,7 @@ desktop-linux:
|
|||
desktop-linux-arm64:
|
||||
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 && \
|
||||
mkdir -p /output/fleet-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 && \
|
||||
|
|
|
|||
Loading…
Reference in a new issue