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
|
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: |
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user