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