2 Commits

Author SHA1 Message Date
Dennis Hundertmark 3cf3da9886 fix: add nginx SPA fallback
continuous-integration/drone/pr Build is passing
2026-03-09 12:51:03 +01:00
Dennis Hundertmark a779a16acb ci: use netrc for manifest repo push
continuous-integration/drone/pr Build is passing
2026-03-09 12:40:01 +01:00
3 changed files with 15 additions and 4 deletions
+2 -3
View File
@@ -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"
+1
View File
@@ -9,5 +9,6 @@ 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;"]
+11
View File
@@ -0,0 +1,11 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}