Publish the site as a container on the cluster instead of the pages branch
CI / test (pull_request) Successful in 42s
CI / test (pull_request) Successful in 42s
Every push to main builds the page into an nginx image and pushes it to harbor.kenschiano.net/home/threshing-atlas; Argo CD Image Updater rolls the deployment (kubefiles web/threshing-atlas) at https://threshingatlas.kenschiano.net. forge.yaml now names that address. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
# The published Atlas page as a container: build the static site (npm run build -> dist/), then serve it with an
|
||||
# unprivileged nginx on port 8080. .gitea/workflows/image.yml builds this on every push to main and pushes it to
|
||||
# harbor.kenschiano.net/home/threshing-atlas:latest; Argo CD Image Updater rolls the deployment (kubefiles,
|
||||
# web/threshing-atlas) when that digest changes.
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN node site/build.js /site
|
||||
|
||||
FROM nginxinc/nginx-unprivileged:1.28-alpine
|
||||
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /site /usr/share/nginx/html
|
||||
EXPOSE 8080
|
||||
Reference in New Issue
Block a user