Skip to content

Commit

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

eval $(go env)

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

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

echo "Building ${NAME}..."
go build -ldflags "${GLDFLAGS}" -o ${GOBIN}/${NAME} ${REPO_PATH}/internal
go build -ldflags "${GLDFLAGS}" -o ${BIN_PATH}/${NAME} ${REPO_PATH}/internal

NAME="ignition-validate"

echo "Building ${NAME}..."
go build -ldflags "${GLDFLAGS}" -o ${GOBIN}/${NAME} ${REPO_PATH}/validate
go build -ldflags "${GLDFLAGS}" -o ${BIN_PATH}/${NAME} ${REPO_PATH}/validate

0 comments on commit ff69859

Please sign in to comment.