From 6428b32f30148b2fde9514f4f25e359689332248 Mon Sep 17 00:00:00 2001 From: mnky Date: Sat, 7 Mar 2026 21:21:16 +0000 Subject: [PATCH] .drone.yml aktualisiert --- .drone.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2748b9c..6236b12 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,6 +13,7 @@ steps: - npm run build --- + kind: pipeline type: kubernetes name: deploy @@ -35,9 +36,23 @@ steps: registry: gitea.mnky-code.de repo: gitea.mnky-code.de/mnky/ngrx-playground tags: - - latest - ${DRONE_COMMIT_SHA:0:8} username: from_secret: gitea_username password: - from_secret: gitea_password \ No newline at end of file + from_secret: gitea_password + + - name: update-manifest + image: alpine/git + environment: + GITEA_TOKEN: + from_secret: gitea_token + commands: + - git clone https://mnky:$GITEA_TOKEN@gitea.mnky-code.de/mnky/k8s-manifests + - cd k8s-manifests + - sed -i "s|image:.*ngrx-playground.*|image: gitea.mnky-code.de/mnky/ngrx-playground:${DRONE_COMMIT_SHA:0:8}|" ngrx-playground/deployment.yaml + - git config user.email "drone@ci" + - git config user.name "Drone CI" + - git add . + - git commit -m "Update image to ${DRONE_COMMIT_SHA:0:8}" + - git push \ No newline at end of file