From 8e72abb3e958a8781c5bf5cd8831f20a114191f7 Mon Sep 17 00:00:00 2001 From: Piyush Garg <19270240+piyush-garg@users.noreply.github.com> Date: Wed, 21 Aug 2024 20:52:53 +0530 Subject: [PATCH] Fix goreleaser task This will goreleaser task that is failing with error related to git --- task/goreleaser/0.2/goreleaser.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/task/goreleaser/0.2/goreleaser.yaml b/task/goreleaser/0.2/goreleaser.yaml index 09b95aa0..93b9a4ef 100644 --- a/task/goreleaser/0.2/goreleaser.yaml +++ b/task/goreleaser/0.2/goreleaser.yaml @@ -41,11 +41,13 @@ spec: image: $(params.image) workingDir: $(workspaces.source.path) script: | + git config --global --add safe.directory $(workspaces.source.path) git status; git fetch -p --all - name: release image: $(params.image) workingDir: $(workspaces.source.path) script: | + git config --global --add safe.directory $(workspaces.source.path) goreleaser release $(params.flags) env: - name: GOPATH