Skip to content

Commit 9672e2d

Browse files
chancezmichi-covalent
authored andcommitted
Makefile: Use hubble target to build release binaries
Signed-off-by: Chance Zibolski <[email protected]> Signed-off-by: Michi Mutsuzaki <[email protected]>
1 parent 782223a commit 9672e2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ local-release: clean
6363
for ARCH in $$ARCHS; do \
6464
echo Building release binary for $$OS/$$ARCH...; \
6565
test -d release/$$OS/$$ARCH|| mkdir -p release/$$OS/$$ARCH; \
66-
env GOOS=$$OS GOARCH=$$ARCH $(GO_BUILD) $(if $(GO_TAGS),-tags $(GO_TAGS)) -ldflags "-w -s -X 'github.com/cilium/cilium/hubble/pkg.Version=${VERSION}'" -o release/$$OS/$$ARCH/$(TARGET)$$EXT; \
66+
GOOS=$$OS GOARCH=$$ARCH $(MAKE) hubble; \
67+
mv $(TARGET) release/$$OS/$$ARCH/$(TARGET)$$EXT; \
6768
tar -czf release/$(TARGET)-$$OS-$$ARCH.tar.gz -C release/$$OS/$$ARCH $(TARGET)$$EXT; \
6869
(cd release && sha256sum $(TARGET)-$$OS-$$ARCH.tar.gz > $(TARGET)-$$OS-$$ARCH.tar.gz.sha256sum); \
6970
done; \

0 commit comments

Comments
 (0)