UPDATE DEPLOY STUFF
This commit is contained in:
@@ -88,16 +88,16 @@ steps:
|
|||||||
when:
|
when:
|
||||||
- status: [failure]
|
- status: [failure]
|
||||||
|
|
||||||
- name: Trigger Portainer stack redeploy
|
- name: Trigger Dockhand stack redeploy
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
environment:
|
environment:
|
||||||
PORTAINER_WEBHOOK_URL:
|
WEBHOOK_URL:
|
||||||
from_secret: portainer_webhook_url
|
from_secret: dockhand_webhook_url
|
||||||
commands:
|
commands:
|
||||||
- set -e
|
- set -e
|
||||||
- echo "=== Triggering Portainer stack redeploy ==="
|
- echo "=== Triggering Portainer stack redeploy ==="
|
||||||
- |
|
- |
|
||||||
resp=$(curl -s -w "\n%{http_code}" -X POST "$PORTAINER_WEBHOOK_URL")
|
resp=$(curl -s -w "\n%{http_code}" -X POST "$WEBHOOK_URL")
|
||||||
body=$(echo "$resp" | head -n -1)
|
body=$(echo "$resp" | head -n -1)
|
||||||
code=$(echo "$resp" | tail -n 1)
|
code=$(echo "$resp" | tail -n 1)
|
||||||
if [ "$code" != "200" ] && [ "$code" != "204" ]; then
|
if [ "$code" != "200" ] && [ "$code" != "204" ]; then
|
||||||
|
|||||||
@@ -121,12 +121,12 @@ services:
|
|||||||
- /mnt/config/docker/qr/db:/data
|
- /mnt/config/docker/qr/db:/data
|
||||||
- /mnt/config/docker/qr/uploads:/uploads
|
- /mnt/config/docker/qr/uploads:/uploads
|
||||||
environment:
|
environment:
|
||||||
PORT: '8080'
|
PORT: ${API_PORT:-8080}
|
||||||
DB_PATH: /data/db.sqlite
|
DB_PATH: ${DB_PATH:-/data/db.sqlite}
|
||||||
UPLOADS_PATH: /uploads
|
UPLOADS_PATH: ${UPLOADS_PATH:-/uploads}
|
||||||
KUTT_API_KEY: ${KUTT_API_KEY:-}
|
KUTT_API_KEY: ${KUTT_API_KEY:-}
|
||||||
KUTT_BASE_URL: http://kutt:3000
|
KUTT_BASE_URL: ${KUTT_BASE_URL:-http://kutt:3000}
|
||||||
SHORT_DOMAIN: https://mifi.me
|
SHORT_DOMAIN: ${SHORT_DOMAIN:-https://mifi.me}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
- CMD
|
- CMD
|
||||||
@@ -150,7 +150,7 @@ services:
|
|||||||
qr_api:
|
qr_api:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
QR_API_URL: http://qr_api:8080
|
QR_API_URL: ${QR_API_URL:-http://qr_api:8080}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
- CMD
|
- CMD
|
||||||
Reference in New Issue
Block a user