Files
infrastructure/.gitea/workflows/tangle.yaml
Hermes ec511b02d9
Some checks failed
Tangle and Deploy / tangle (push) Failing after 3m11s
fix: install docker CLI in runner
2026-05-15 07:16:39 +00:00

30 lines
958 B
YAML

name: Tangle and Deploy
on: [push]
jobs:
tangle:
runs-on: debian-latest
steps:
- name: Checkout
run: |
apt-get update -qq && apt-get install -y -qq git docker.io 2>&1 | tail -1
mkdir -p /workspace
git clone --depth 1 \
http://amr:ef7dbcf8e7d4602ef5baaebacbe294723a0b45cf@10.10.10.201:3001/amr/infrastructure.git \
/workspace/infrastructure
- name: Tangle
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 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'"