From a779a16acb1f61d657b272f58f8b3c2d201757d2 Mon Sep 17 00:00:00 2001 From: Dennis Hundertmark Date: Mon, 9 Mar 2026 12:40:01 +0100 Subject: [PATCH] ci: use netrc for manifest repo push --- .drone.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0977906..a82b56c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -54,11 +54,10 @@ steps: - apk add --no-cache git sed - test -n "$GITEA_USERNAME" - 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 - 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' - git config user.name "drone" - git config user.email "drone@mnky-code.de"