- index.html: polls Gitea API every 30s for new commits on main; shows countdown banner and auto-reloads when SHA changes - Dockerfile + docker-compose.yml: serve the site via nginx; main on :4200, staging on :4201 - deploy.sh: rebuild and restart a named service - .gitea/workflows/deploy.yml: SSH-deploy to host on every push to main (requires DEPLOY_HOST / DEPLOY_USER / DEPLOY_SSH_KEY repo secrets) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 lines
197 B
Docker
7 lines
197 B
Docker
FROM nginx:alpine
|
|
COPY . /usr/share/nginx/html
|
|
RUN rm -f /usr/share/nginx/html/Dockerfile \
|
|
/usr/share/nginx/html/docker-compose.yml \
|
|
/usr/share/nginx/html/deploy.sh
|
|
EXPOSE 80
|