Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3cf3da9886 | |||
| a779a16acb | |||
| 4ecd29996e | |||
| 305602644c |
+4
-3
@@ -47,16 +47,17 @@ steps:
|
|||||||
image: alpine:3.20
|
image: alpine:3.20
|
||||||
environment:
|
environment:
|
||||||
GITEA_USERNAME:
|
GITEA_USERNAME:
|
||||||
from_secret: gitea_username
|
from_secret: gitea_git_username
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_password
|
from_secret: gitea_git_token
|
||||||
commands:
|
commands:
|
||||||
- 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"
|
|
||||||
- '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"
|
||||||
|
|||||||
@@ -9,5 +9,6 @@ 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
@@ -0,0 +1,11 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name _;
|
||||||
|
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user