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