13 Commits

Author SHA1 Message Date
mnky 20e6b1d33b Merge pull request 'fix: add nginx SPA fallback' (#8) from build/add-push-drone-pipeleine-2 into main
continuous-integration/drone/push Build is passing
Reviewed-on: #8
2026-03-09 11:51:40 +00:00
Dennis Hundertmark 3cf3da9886 fix: add nginx SPA fallback
continuous-integration/drone/pr Build is passing
2026-03-09 12:51:03 +01:00
mnky 0521385d30 Merge pull request 'ci: use netrc for manifest repo push' (#7) from build/add-push-drone-pipeleine-2 into main
continuous-integration/drone/push Build is passing
Reviewed-on: #7
2026-03-09 11:42:53 +00: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
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
Dennis Hundertmark 4ecd29996e ci: add temporary drone git auth debugging
continuous-integration/drone/pr Build is passing
2026-03-09 12:04:13 +01: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
Dennis Hundertmark 305602644c ci: use dedicated git secrets for manifest updates
continuous-integration/drone/pr Build is passing
2026-03-09 11:33:46 +01: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
Dennis Hundertmark 7a1dda51a4 ci: update authentication to use GITEA_TOKEN for secure Git operations
continuous-integration/drone/pr Build is passing
- Replace GITEA_PASSWORD with GITEA_TOKEN in environment variables
- Add validation checks for GITEA_USERNAME and GITEA_TOKEN
- Update git remote URL to include token for authentication
- Simplify push command to use configured origin remote

This change enhances security by using a token instead of a password for Git authentication in the CI pipeline.
2026-03-08 10:29:18 +01:00
mnky 001b43c74c Merge pull request 'feat: Add a new step to the deploy pipeline to update Kubernetes manifests with the latest image tag.' (#3) from build/add-push-drone-pipeleine into main
continuous-integration/drone/push Build is failing
Reviewed-on: #3
2026-03-08 09:11:14 +00:00
Dennis Hundertmark d622684a08 feat: Add a new step to the deploy pipeline to update Kubernetes manifests with the latest image tag.
continuous-integration/drone/pr Build is passing
2026-03-08 10:10:24 +01:00
mnky c4d4f73bd3 Merge pull request 'feat: add ngrx store implementation' (#2) from feat/add-ngrx into main
continuous-integration/drone/push Build is passing
Reviewed-on: #2
2026-03-08 08:53:34 +00:00
3 changed files with 64 additions and 28 deletions
+24
View File
@@ -1,6 +1,7 @@
kind: pipeline
type: kubernetes
name: pr-check
trigger:
event:
- pull_request
@@ -16,6 +17,7 @@ steps:
kind: pipeline
type: kubernetes
name: deploy
trigger:
branch:
- main
@@ -40,3 +42,25 @@ steps:
from_secret: gitea_username
password:
from_secret: gitea_password
- name: update-manifests
image: alpine:3.20
environment:
GITEA_USERNAME:
from_secret: gitea_git_username
GITEA_TOKEN:
from_secret: gitea_git_token
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'
- 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
+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;
}
}