fix: run register-traefik.sh inside alpine container with host volume mount
Some checks failed
Deploy / deploy (push) Failing after 3m49s

This commit is contained in:
Gianpierre Mio
2026-03-10 10:00:44 -05:00
parent cfdfa41dc0
commit 5f6f304bb6
2 changed files with 6 additions and 2 deletions

View File

@@ -39,7 +39,11 @@ jobs:
docker compose -f docker-compose.production.yml up -d docker compose -f docker-compose.production.yml up -d
- name: Register Traefik route - name: Register Traefik route
run: sh /workspace/darkcodex/api-ubigeo/scripts/register-traefik.sh run: |
docker run --rm \
-v /workspace/darkcodex/api-ubigeo/scripts:/scripts \
-v /etc/easypanel/traefik/config:/traefik-config \
alpine sh /scripts/register-traefik.sh
- name: Health check - name: Health check
run: | run: |

View File

@@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
OUT=/etc/easypanel/traefik/config/api-ubigeo.yaml OUT=/traefik-config/api-ubigeo.yaml
cat > "$OUT" << 'EOF' cat > "$OUT" << 'EOF'
http: http: