feat: literate IaC with tangle-deploy pipeline
Some checks failed
Tangle and Deploy / tangle (push) Failing after 12s

- Converted Traefik section to tangle blocks with absolute paths
- Created .gitea/workflows/tangle.yaml Gitea Action
- tangle-deploy.sh: tangles org → writes files → restarts services
This commit is contained in:
Hermes
2026-05-15 07:12:24 +00:00
parent 26e95185e3
commit 2a01bed005
4 changed files with 1054 additions and 50 deletions

View File

@@ -0,0 +1,23 @@
name: Tangle and Deploy
on: [push]
jobs:
tangle:
runs-on: debian-latest
steps:
- uses: actions/checkout@v4
- name: Tangle infrastructure.org
run: |
docker run --rm \
-v /:/host \
-v $(pwd):/workspace:ro \
debian:stable-slim \
bash -c "cp -r /workspace /host/tmp/infra-tangle && chroot /host /usr/local/bin/tangle-deploy /tmp/infra-tangle"
- name: Restart affected services
run: |
docker run --rm \
-v /:/host \
debian:stable-slim \
bash -c "chroot /host bash -c 'cd /docker/compose && docker compose up -d traefik 2>&1'"