1 Commits

Author SHA1 Message Date
Dennis Hundertmark a845babc44 feat: Add a new step to the deploy pipeline to update Kubernetes manifests with the latest image tag.
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
2026-03-08 10:09:00 +01:00
3 changed files with 7 additions and 23 deletions
+6 -10
View File
@@ -47,20 +47,16 @@ steps:
image: alpine:3.20
environment:
GITEA_USERNAME:
from_secret: gitea_git_username
GITEA_TOKEN:
from_secret: gitea_git_token
from_secret: gitea_username
GITEA_PASSWORD:
from_secret: gitea_password
commands:
- 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
- '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.email "drone@mnky-code.de"
- git add ngrx-playground/deployment.yaml
- 'git commit -m "Deploy ngrx-playground ${DRONE_COMMIT_SHA}" || exit 0'
- git push origin HEAD:main
- git commit -m "Deploy ngrx-playground ${DRONE_COMMIT_SHA}" || exit 0
- git push https://${GITEA_USERNAME}:${GITEA_PASSWORD}@gitea.mnky-code.de/mnky/k8s-manifests.git HEAD:main
+1 -2
View File
@@ -9,6 +9,5 @@ RUN npm run build
# Runtime Stage
FROM nginx:alpine
COPY --from=builder /app/dist/*/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]
-11
View File
@@ -1,11 +0,0 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}