.drone.yml aktualisiert
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2026-03-07 21:21:16 +00:00
parent be4b752e00
commit 6428b32f30
+16 -1
View File
@@ -13,6 +13,7 @@ steps:
- npm run build - npm run build
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: deploy name: deploy
@@ -35,9 +36,23 @@ steps:
registry: gitea.mnky-code.de registry: gitea.mnky-code.de
repo: gitea.mnky-code.de/mnky/ngrx-playground repo: gitea.mnky-code.de/mnky/ngrx-playground
tags: tags:
- latest
- ${DRONE_COMMIT_SHA:0:8} - ${DRONE_COMMIT_SHA:0:8}
username: username:
from_secret: gitea_username from_secret: gitea_username
password: password:
from_secret: gitea_password 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