mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix(build): set workdir as safe for git when running docker image (#3229)
prevents git from panic when running goreleaser as docker in CI env Signed-off-by: Artur Troian <troian.ap@gmail.com>
This commit is contained in:
parent
4e238184fe
commit
02a3486d4b
@ -20,5 +20,8 @@ if [ -n "$GITHUB_TOKEN" ]; then
|
||||
echo "$GITHUB_TOKEN" | docker login ghcr.io -u docker --password-stdin
|
||||
fi
|
||||
|
||||
# prevents git from complaining about unsafe dir. especially when using github actions
|
||||
git config --global --add safe.directory .
|
||||
|
||||
# shellcheck disable=SC2068
|
||||
exec goreleaser $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user