Merge pull request 'ci: use netrc for manifest repo push' (#7) from build/add-push-drone-pipeleine-2 into main
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
+2
-3
@@ -54,11 +54,10 @@ steps:
|
|||||||
- apk add --no-cache git sed
|
- apk add --no-cache git sed
|
||||||
- test -n "$GITEA_USERNAME"
|
- test -n "$GITEA_USERNAME"
|
||||||
- test -n "$GITEA_TOKEN"
|
- test -n "$GITEA_TOKEN"
|
||||||
|
- 'printf "machine gitea.mnky-code.de\nlogin %s\npassword %s\n" "$GITEA_USERNAME" "$GITEA_TOKEN" > ~/.netrc'
|
||||||
|
- chmod 600 ~/.netrc
|
||||||
- git clone https://gitea.mnky-code.de/mnky/k8s-manifests.git
|
- git clone https://gitea.mnky-code.de/mnky/k8s-manifests.git
|
||||||
- cd k8s-manifests
|
- cd k8s-manifests
|
||||||
- git remote set-url origin "https://${GITEA_USERNAME}:${GITEA_TOKEN}@gitea.mnky-code.de/mnky/k8s-manifests.git"
|
|
||||||
- git ls-remote origin
|
|
||||||
- sleep 600
|
|
||||||
- 'sed -i "s|image: gitea.mnky-code.de/mnky/ngrx-playground:.*|image: gitea.mnky-code.de/mnky/ngrx-playground:${DRONE_COMMIT_SHA}|" ngrx-playground/deployment.yaml'
|
- 'sed -i "s|image: gitea.mnky-code.de/mnky/ngrx-playground:.*|image: gitea.mnky-code.de/mnky/ngrx-playground:${DRONE_COMMIT_SHA}|" ngrx-playground/deployment.yaml'
|
||||||
- git config user.name "drone"
|
- git config user.name "drone"
|
||||||
- git config user.email "drone@mnky-code.de"
|
- git config user.email "drone@mnky-code.de"
|
||||||
|
|||||||
Reference in New Issue
Block a user