Files
infrastructure/.gitea/workflows/tangle.yaml
Hermes 2a01bed005
Some checks failed
Tangle and Deploy / tangle (push) Failing after 12s
feat: literate IaC with tangle-deploy pipeline
- 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
2026-05-15 07:12:24 +00:00

24 lines
672 B
YAML

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'"