diff --git a/scripts/packages/packager/local-entrypoint.sh b/scripts/packages/packager/local-entrypoint.sh index af354e291..1a764afab 100644 --- a/scripts/packages/packager/local-entrypoint.sh +++ b/scripts/packages/packager/local-entrypoint.sh @@ -20,6 +20,8 @@ cp build/nginx-agent /staging/usr/local/bin chmod +x /staging/usr/local/etc/rc.d/nginx-agent +# Temporary fix until the follow issue is resolved https://github.com/actions/checkout/issues/1169 +git config --global --add safe.directory /nginx-agent VERSION="$(git describe --match 'v[0-9]*' --abbrev=0 | tr -d 'v')-SNAPSHOT-$(git rev-parse --short HEAD)" envsubst < scripts/packages/manifest > /staging/+MANIFEST pkg -o ABI="FreeBSD:13:amd64" create --format txz \ diff --git a/scripts/packages/packager/signed-entrypoint.sh b/scripts/packages/packager/signed-entrypoint.sh index 415c64843..cfd90d56b 100644 --- a/scripts/packages/packager/signed-entrypoint.sh +++ b/scripts/packages/packager/signed-entrypoint.sh @@ -25,6 +25,8 @@ cp build/nginx-agent staging/usr/local/bin chmod +x staging/usr/local/etc/rc.d/nginx-agent +# Temporary fix until the follow issue is resolved https://github.com/actions/checkout/issues/1169 +git config --global --add safe.directory /nginx-agent VERSION="$(git describe --match 'v[0-9]*' --abbrev=0 | tr -d 'v')" envsubst < scripts/packages/manifest > staging/+MANIFEST for freebsd_abi in $FREEBSD_DISTROS; do \