diff options
author | techknowlogick | 2022-05-06 13:25:18 -0400 |
---|---|---|
committer | GitHub | 2022-05-06 18:25:18 +0100 |
commit | cab3a8b59d6f9d66804479ad2a20d02ef0e0f79f (patch) | |
tree | fd433612cd90424a76e31e3d1e690df93fad08ff /.drone.yml | |
parent | 994257d266af3b4829ba6dfa4db5f28834a7de08 (diff) |
Set safe dir for git operations in .drone.yml CI (#19641)
Our drone by necessity runs on git repositories not owned by the drone process. Unfortunately this means that git operations and thence CI builds will fail without the `safe.directory` option being set.
See: https://drone.gitea.io/go-gitea/gitea/54632/2/8
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml index b3b168261..ce922f8c6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -235,6 +235,7 @@ steps: image: docker:git pull: always commands: + - git config --global --add safe.directory /drone/src - git fetch --tags --force when: event: @@ -427,6 +428,7 @@ steps: image: docker:git pull: always commands: + - git config --global --add safe.directory /drone/src - git fetch --tags --force when: event: @@ -628,6 +630,7 @@ steps: image: docker:git pull: always commands: + - git config --global --add safe.directory /drone/src - git fetch --tags --force - name: deps-frontend @@ -746,6 +749,7 @@ steps: image: docker:git pull: always commands: + - git config --global --add safe.directory /drone/src - git fetch --tags --force - name: deps-frontend @@ -891,6 +895,7 @@ steps: image: docker:git pull: always commands: + - git config --global --add safe.directory /drone/src - git fetch --tags --force - name: publish @@ -954,6 +959,7 @@ steps: image: docker:git pull: always commands: + - git config --global --add safe.directory /drone/src - git fetch --tags --force - name: publish @@ -1016,6 +1022,7 @@ steps: image: docker:git pull: always commands: + - git config --global --add safe.directory /drone/src - git fetch --tags --force - name: publish @@ -1112,6 +1119,7 @@ steps: image: docker:git pull: always commands: + - git config --global --add safe.directory /drone/src - git fetch --tags --force - name: publish @@ -1175,6 +1183,7 @@ steps: image: docker:git pull: always commands: + - git config --global --add safe.directory /drone/src - git fetch --tags --force - name: publish @@ -1237,6 +1246,7 @@ steps: image: docker:git pull: always commands: + - git config --global --add safe.directory /drone/src - git fetch --tags --force - name: publish |