Skip to content

Commit

Permalink
build_releases: Override artifact output with BIN_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
ashcrow committed Mar 16, 2018
1 parent ff69859 commit b2a5ddd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build_releases
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ fi

eval $(go env)

export GOBIN=${PWD}/bin/releases
if [ -z ${BIN_PATH+a} ]; then
export BIN_PATH=${PWD}/bin/releases/
fi

export GOPATH=${PWD}/gopath
export CGO_ENABLED=0

build_release() {
export NAME="ignition-validate-${1}"
echo "building ${NAME}"
go build -ldflags "${GLDFLAGS}" -o ${GOBIN}/${NAME} ${REPO_PATH}/validate
go build -ldflags "${GLDFLAGS}" -o ${BIN_PATH}/${NAME} ${REPO_PATH}/validate
}

export GOOS=linux
Expand Down

0 comments on commit b2a5ddd

Please sign in to comment.