Skip to content

Commit 96dc940

Browse files
authored
Fix cloud build git error (#9012)
* testing the fix Signed-off-by: James Strong <[email protected]> * revert 1.3.1 while we fix the build Signed-off-by: James Strong <[email protected]> Signed-off-by: James Strong <[email protected]>
1 parent 2fe6660 commit 96dc940

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

TAG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.3.1
1+
v1.3.0

build/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ echo "Building targets for ${ARCH}, generated targets in ${TARGETS_DIR} director
4949

5050
echo "Building ${PKG}/cmd/nginx"
5151

52-
git config --add safe.directory /go/src/k8s.io/ingress-nginx
52+
git config --global --add safe.directory /go/src/k8s.io/ingress-nginx
53+
5354
${GO_BUILD_CMD} \
5455
-trimpath -ldflags="-buildid= -w -s \
5556
-X ${PKG}/version.RELEASE=${TAG} \
@@ -74,4 +75,3 @@ ${GO_BUILD_CMD} \
7475
-X ${PKG}/version.COMMIT=${COMMIT_SHA} \
7576
-X ${PKG}/version.REPO=${REPO_INFO}" \
7677
-o "${TARGETS_DIR}/wait-shutdown" "${PKG}/cmd/waitshutdown"
77-

0 commit comments

Comments
 (0)