From 6fc877da7595979bf0e2a7ae87e62fb50240b959 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani <45800463+rchincha@users.noreply.github.com> Date: Fri, 16 Dec 2022 18:56:35 -0800 Subject: [PATCH] ci: pass build version for static binary builds (#371) Signed-off-by: Ramkumar Chinchani Signed-off-by: Ramkumar Chinchani --- Makefile | 3 ++- build.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8959f889..66fa3dfe 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,8 @@ stacker: stacker-dynamic -f build.yaml --shell-fail \ --substitute STACKER_BUILD_BASE_IMAGE=$(STACKER_BUILD_BASE_IMAGE) \ --substitute LXC_CLONE_URL=$(LXC_CLONE_URL) \ - --substitute LXC_BRANCH=$(LXC_BRANCH) + --substitute LXC_BRANCH=$(LXC_BRANCH) \ + --substitute VERSION_FULL=$(VERSION_FULL) stacker-static: $(GO_SRC) go.mod go.sum cmd/stacker/lxc-wrapper/lxc-wrapper $(call build_stacker,static_build,-extldflags '-static',stacker) diff --git a/build.yaml b/build.yaml index 56ad9b7c..82079d9c 100644 --- a/build.yaml +++ b/build.yaml @@ -85,6 +85,7 @@ build: export HOME=/root export GOPATH=/stacker-tree/.build/gopath export LXC_VERSION=$(git -C /lxc rev-parse HEAD) + export VERSION_FULL=${{VERSION_FULL}} make -C /stacker-tree/cmd/stacker/lxc-wrapper clean make -C /stacker-tree stacker-static