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
This commit is contained in:
parent
18dd49a4ab
commit
59d132f0b3
1 changed files with 10 additions and 0 deletions
10
.drone.yml
10
.drone.yml
|
@ -235,6 +235,7 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global --add safe.directory /drone/src
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
@ -427,6 +428,7 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global --add safe.directory /drone/src
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
@ -628,6 +630,7 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global --add safe.directory /drone/src
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
- name: deps-frontend
|
- name: deps-frontend
|
||||||
|
@ -746,6 +749,7 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global --add safe.directory /drone/src
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
- name: deps-frontend
|
- name: deps-frontend
|
||||||
|
@ -891,6 +895,7 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global --add safe.directory /drone/src
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
|
@ -954,6 +959,7 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global --add safe.directory /drone/src
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
|
@ -1016,6 +1022,7 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global --add safe.directory /drone/src
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
|
@ -1112,6 +1119,7 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global --add safe.directory /drone/src
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
|
@ -1175,6 +1183,7 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global --add safe.directory /drone/src
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
|
@ -1237,6 +1246,7 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global --add safe.directory /drone/src
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
|
|
Reference in a new issue