Skip to content

Commit

Permalink
fix(build): fix release tag env in buildscript
Browse files Browse the repository at this point in the history
RELEASE_TAG is now passed as a build argument to the buildx container, so that
build script can set the ldflags correctly.

Signed-off-by: Akhil Mohan <[email protected]>
  • Loading branch information
akhilerm authored and kmova committed Nov 13, 2020
1 parent c404c25 commit 59f7908
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ ifeq (${DBUILD_SITE_URL}, )
export DBUILD_SITE_URL
endif

export DBUILD_ARGS=--build-arg DBUILD_DATE=${DBUILD_DATE} --build-arg DBUILD_REPO_URL=${DBUILD_REPO_URL} --build-arg DBUILD_SITE_URL=${DBUILD_SITE_URL} --build-arg ARCH=${ARCH}

export DBUILD_ARGS=--build-arg DBUILD_DATE=${DBUILD_DATE} --build-arg DBUILD_REPO_URL=${DBUILD_REPO_URL} --build-arg DBUILD_SITE_URL=${DBUILD_SITE_URL} --build-arg RELEASE_TAG=${RELEASE_TAG}

# Initialize the NDM DaemonSet variables
# Specify the NDM DaemonSet binary name
Expand Down
2 changes: 0 additions & 2 deletions Makefile.buildx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# ==============================================================================
# Build Options

export DBUILD_ARGS=--build-arg DBUILD_DATE=${DBUILD_DATE} --build-arg DBUILD_REPO_URL=${DBUILD_REPO_URL} --build-arg DBUILD_SITE_URL=${DBUILD_SITE_URL}

ifeq (${TAG}, )
export TAG=ci
endif
Expand Down
3 changes: 2 additions & 1 deletion build/ndm-daemonset/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ ENV GO111MODULE=on \
GOARCH=${TARGETARCH} \
GOARM=${TARGETVARIANT} \
DEBIAN_FRONTEND=noninteractive \
PATH="/root/go/bin:${PATH}"
PATH="/root/go/bin:${PATH}" \
RELEASE_TAG=${RELEASE_TAG}

WORKDIR /go/src/github.com/openebs/node-disk-manager/

Expand Down
3 changes: 2 additions & 1 deletion build/ndm-exporter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ ENV GO111MODULE=on \
GOARCH=${TARGETARCH} \
GOARM=${TARGETVARIANT} \
DEBIAN_FRONTEND=noninteractive \
PATH="/root/go/bin:${PATH}"
PATH="/root/go/bin:${PATH}" \
RELEASE_TAG=${RELEASE_TAG}

WORKDIR /go/src/github.com/openebs/node-disk-manager/

Expand Down
3 changes: 2 additions & 1 deletion build/ndm-operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ ENV GO111MODULE=on \
GOARCH=${TARGETARCH} \
GOARM=${TARGETVARIANT} \
DEBIAN_FRONTEND=noninteractive \
PATH="/root/go/bin:${PATH}"
PATH="/root/go/bin:${PATH}" \
RELEASE_TAG=${RELEASE_TAG}

WORKDIR /go/src/github.com/openebs/node-disk-manager/

Expand Down

0 comments on commit 59f7908

Please sign in to comment.