adds safe.directory

This commit is contained in:
Hyatt 2022-04-14 10:58:42 -05:00
parent cf6f39e0da
commit 4da5e6a642
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

1
Jenkinsfile vendored
View File

@ -55,6 +55,7 @@ podTemplate(
sh """ sh """
if [ ! -f "/usr/bin/git" ] || [ ! -x "/usr/bin/git" ]; then if [ ! -f "/usr/bin/git" ] || [ ! -x "/usr/bin/git" ]; then
apk add --no-cache git apk add --no-cache git
git config --global --add safe.directory '${workspace}'
fi fi
apk add --no-cache gcc musl-dev upx apk add --no-cache gcc musl-dev upx
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v -ldflags="-s -w" -tags timetzdata -o pihole-zone-generator ./cmd/bind GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v -ldflags="-s -w" -tags timetzdata -o pihole-zone-generator ./cmd/bind