Added distribution

This commit is contained in:
2026-08-15 19:58:39 +09:00
parent 5ff20429d6
commit be6ac9b0bf
2 changed files with 43 additions and 1 deletions
+35
View File
@@ -0,0 +1,35 @@
name: Deploy Main
on:
push:
branches:
- main
workflow_dispatch:
env:
DEPLOY_DIR: /volume1/09_container_manager/14_error-page
jobs:
deploy-main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy on NAS
run: |
set -euo pipefail
mkdir -p "$DEPLOY_DIR/html"
cp docker-compose.yml "$DEPLOY_DIR/docker-compose.yml"
cp nginx.conf "$DEPLOY_DIR/nginx.conf"
cp upstreams.map "$DEPLOY_DIR/upstreams.map"
cp html/index.html "$DEPLOY_DIR/html/index.html"
rm -f "$DEPLOY_DIR/html/preview.html"
cd "$DEPLOY_DIR"
docker compose config --quiet
docker compose pull
docker compose up -d --force-recreate
docker compose ps