3 Commits

Author SHA1 Message Date
mnky f3ac85cfb4 Merge pull request 'ci: add temporary drone git auth debugging' (#6) from build/add-push-drone-pipeleine-2 into main
continuous-integration/drone/push Build is failing
Reviewed-on: #6
2026-03-09 11:09:27 +00:00
mnky 9095cdf4ed Merge pull request 'ci: use dedicated git secrets for manifest updates' (#5) from build/add-push-drone-pipeleine-2 into main
continuous-integration/drone/push Build is failing
Reviewed-on: #5
2026-03-09 10:35:38 +00:00
mnky a240dd4b22 Merge pull request 'ci: update authentication to use GITEA_TOKEN for secure Git operations' (#4) from build/add-push-drone-pipeleine-2 into main
continuous-integration/drone/push Build is failing
Reviewed-on: #4
2026-03-08 09:29:45 +00:00
3 changed files with 4 additions and 15 deletions
+3 -2
View File
@@ -54,10 +54,11 @@ 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"
+1 -2
View File
@@ -9,6 +9,5 @@ RUN npm run build
# Runtime Stage # Runtime Stage
FROM nginx:alpine FROM nginx:alpine
COPY --from=builder /app/dist/*/browser /usr/share/nginx/html COPY --from=builder /app/dist/*/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 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;
}
}