Source .env before docker stack deploy in CI
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m55s
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:
@@ -55,6 +55,7 @@ jobs:
|
||||
run: |
|
||||
ssh "root@$DEPLOY_HOST" "
|
||||
cd /root/art-dag/celery
|
||||
set -a && source .env && set +a
|
||||
docker stack deploy -c docker-compose.yml celery
|
||||
echo 'Waiting for services to update...'
|
||||
sleep 10
|
||||
|
||||
Reference in New Issue
Block a user