Files
infrastructure/.gitea/workflows/tangle.yaml
Hermes e5d78da3cb
Some checks failed
Tangle and Deploy / tangle (push) Failing after 2s
fix: bash-only checkout in Gitea Action workflow
2026-05-15 07:14:03 +00:00

29 lines
902 B
YAML

name: Tangle and Deploy
on: [push]
jobs:
tangle:
runs-on: debian-latest
steps:
- name: Checkout
run: |
mkdir -p /workspace
git clone --depth 1 \
http://amr:ef7dbcf8e7d4602ef5baaebacbe294723a0b45cf@10.10.10.201:3001/amr/infrastructure.git \
/workspace/infrastructure
- name: Tangle infrastructure.org
run: |
docker run --rm \
-v /:/host \
-v /workspace/infrastructure:/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'"