Pass credentials to git clone
This commit is contained in:
parent
c72c6aced9
commit
1cca5f5f57
@ -42,6 +42,9 @@ steps:
|
||||
|
||||
- name: Update Helm Chart
|
||||
image: alpine
|
||||
environment:
|
||||
GITEA_PASSWORD:
|
||||
from_secret: gitea_password
|
||||
commands:
|
||||
# Cannot use `drone/git` plugin because:
|
||||
# * it cannot check out to a different directory
|
||||
@ -51,7 +54,7 @@ steps:
|
||||
- find . -not -path '.' | xargs rm -rf
|
||||
- find . -not -path '.'
|
||||
- apk add yq git
|
||||
- git clone https://gitea.scubbo.org/scubbo/helm-charts.git
|
||||
- git clone https://scubbo:${GITEA_PASSWORD}@gitea.scubbo.org/scubbo/helm-charts.git
|
||||
- cd helm-charts
|
||||
- yq -i '.image.tag = "${DRONE_COMMIT_SHA:0:10}"' charts/edh-elo/values.yaml
|
||||
- git add -A
|
||||
|
Loading…
x
Reference in New Issue
Block a user