Merge pull request #9106 from strongjz/remove-vcs
remove vcs build and resolve git issues
This commit is contained in:
commit
e7640a321c
|
|
@ -49,31 +49,30 @@ echo "Building targets for ${ARCH}, generated targets in ${TARGETS_DIR} director
|
||||||
|
|
||||||
echo "Building ${PKG}/cmd/nginx"
|
echo "Building ${PKG}/cmd/nginx"
|
||||||
|
|
||||||
pushd /go/src/k8s.io/ingress-nginx
|
|
||||||
git config --add safe.directory /go/src/k8s.io/ingress-nginx
|
|
||||||
popd
|
|
||||||
|
|
||||||
${GO_BUILD_CMD} \
|
${GO_BUILD_CMD} \
|
||||||
-trimpath -ldflags="-buildid= -w -s \
|
-trimpath -ldflags="-buildid= -w -s \
|
||||||
-X ${PKG}/version.RELEASE=${TAG} \
|
-X ${PKG}/version.RELEASE=${TAG} \
|
||||||
-X ${PKG}/version.COMMIT=${COMMIT_SHA} \
|
-X ${PKG}/version.COMMIT=${COMMIT_SHA} \
|
||||||
-X ${PKG}/version.REPO=${REPO_INFO}" \
|
-X ${PKG}/version.REPO=${REPO_INFO}" \
|
||||||
|
-buildvcs=false \
|
||||||
-o "${TARGETS_DIR}/nginx-ingress-controller" "${PKG}/cmd/nginx"
|
-o "${TARGETS_DIR}/nginx-ingress-controller" "${PKG}/cmd/nginx"
|
||||||
|
|
||||||
echo "Building ${PKG}/cmd/dbg"
|
echo "Building ${PKG}/cmd/dbg"
|
||||||
|
|
||||||
${GO_BUILD_CMD} \
|
${GO_BUILD_CMD} \
|
||||||
-trimpath -ldflags="-buildid= -w -s \
|
-trimpath -ldflags="-buildid= -w -s \
|
||||||
-X ${PKG}/version.RELEASE=${TAG} \
|
-X ${PKG}/version.RELEASE=${TAG} \
|
||||||
-X ${PKG}/version.COMMIT=${COMMIT_SHA} \
|
-X ${PKG}/version.COMMIT=${COMMIT_SHA} \
|
||||||
-X ${PKG}/version.REPO=${REPO_INFO}" \
|
-X ${PKG}/version.REPO=${REPO_INFO}" \
|
||||||
|
-buildvcs=false \
|
||||||
-o "${TARGETS_DIR}/dbg" "${PKG}/cmd/dbg"
|
-o "${TARGETS_DIR}/dbg" "${PKG}/cmd/dbg"
|
||||||
|
|
||||||
echo "Building ${PKG}/cmd/waitshutdown"
|
echo "Building ${PKG}/cmd/waitshutdown"
|
||||||
|
|
||||||
${GO_BUILD_CMD} \
|
${GO_BUILD_CMD} \
|
||||||
-trimpath -ldflags="-buildid= -w -s \
|
-trimpath -ldflags="-buildid= -w -s \
|
||||||
-X ${PKG}/version.RELEASE=${TAG} \
|
-X ${PKG}/version.RELEASE=${TAG} \
|
||||||
-X ${PKG}/version.COMMIT=${COMMIT_SHA} \
|
-X ${PKG}/version.COMMIT=${COMMIT_SHA} \
|
||||||
-X ${PKG}/version.REPO=${REPO_INFO}" \
|
-X ${PKG}/version.REPO=${REPO_INFO}" \
|
||||||
|
-buildvcs=false \
|
||||||
-o "${TARGETS_DIR}/wait-shutdown" "${PKG}/cmd/waitshutdown"
|
-o "${TARGETS_DIR}/wait-shutdown" "${PKG}/cmd/waitshutdown"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue