fix: run register-traefik.sh inside alpine container with host volume mount
Some checks failed
Deploy / deploy (push) Failing after 3m49s
Some checks failed
Deploy / deploy (push) Failing after 3m49s
This commit is contained in:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -39,7 +39,11 @@ jobs:
|
||||
docker compose -f docker-compose.production.yml up -d
|
||||
|
||||
- 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
|
||||
run: |
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
OUT=/etc/easypanel/traefik/config/api-ubigeo.yaml
|
||||
OUT=/traefik-config/api-ubigeo.yaml
|
||||
|
||||
cat > "$OUT" << 'EOF'
|
||||
http:
|
||||
|
||||
Reference in New Issue
Block a user