Source .env before docker stack deploy in CI
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m55s

docker stack deploy does not read .env files automatically
(unlike docker compose), so ${VAR} substitutions resolve to
empty strings. Source .env to export vars before deploying.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-06 21:44:35 +00:00
parent a29841f3c5
commit 6e8e8f8de9

View File

@@ -55,6 +55,7 @@ jobs:
run: | run: |
ssh "root@$DEPLOY_HOST" " ssh "root@$DEPLOY_HOST" "
cd /root/art-dag/celery cd /root/art-dag/celery
set -a && source .env && set +a
docker stack deploy -c docker-compose.yml celery docker stack deploy -c docker-compose.yml celery
echo 'Waiting for services to update...' echo 'Waiting for services to update...'
sleep 10 sleep 10