feat: Added automatic script copying functionality

This commit is contained in:
2026-07-10 22:58:56 +01:00
parent 41d93563d0
commit bab789a347
23 changed files with 284 additions and 18 deletions
+6 -1
View File
@@ -6,13 +6,18 @@
# GITEA_RUNNER_REGISTRATION_TOKEN is intentionally left as a compose variable
# (not baked in here) - services/dev/spinup.sh generates a fresh token and
# writes it to Runners/.env immediately before starting these containers.
#
# /data lives on dev's volume (/mnt/HC_Volume_PENDING_TOFU_APPLY) so runner
# identity survives a server rebuild - baked in directly rather than via .env,
# since Runners/.env is already reserved for the registration token above and
# gets overwritten on every deploy.
services:
runner-1:
image: gitea/act_runner:latest
container_name: gitea_runner_1
volumes:
- ./config.yaml:/config.yaml
- ./gitea_runner_1:/data
- /mnt/HC_Volume_PENDING_TOFU_APPLY/gitea_runner_1:/data
- /var/run/docker.sock:/var/run/docker.sock
networks:
- proxy
+1 -1
View File
@@ -4,7 +4,7 @@ services:
image: gitea/gitea:latest
container_name: gitea
volumes:
- ./gitea:/data
- ${DATA_DIR}/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
+5
View File
@@ -3,6 +3,11 @@
set -e
cd "$(dirname "$0")"
if [ ! -f .env ]; then
echo "Missing .env (expected DATA_DIR=/mnt/HC_Volume_...) - run 'tofu apply' in infra/ first, then re-copy this directory." >&2
exit 1
fi
docker compose -f traefik-docker-compose.yml pull && docker compose -f traefik-docker-compose.yml up -d
docker compose -f gitea-docker-compose.yml pull && docker compose -f gitea-docker-compose.yml up -d
+1 -1
View File
@@ -15,7 +15,7 @@ services:
- "80:80"
- "443:443"
volumes:
- "./letsencrypt:/letsencrypt"
- "${DATA_DIR}/letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- proxy