We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3691b9 commit e0453ddCopy full SHA for e0453dd
1 file changed
.github/workflows/deploy.yml
@@ -155,8 +155,10 @@ jobs:
155
156
sudo docker pull "ghcr.io/${REPO}:${IMAGE_TAG}"
157
158
- # Deploy/update stack
159
- sudo env IMAGE="ghcr.io/${REPO}" IMAGE_TAG="$IMAGE_TAG" \
+ # Deploy/update stack — export .env vars for compose interpolation
+ # (docker stack deploy does NOT read .env files automatically)
160
+ sudo env $(grep -v '^#' .env | grep -v '^$' | xargs) \
161
+ IMAGE="ghcr.io/${REPO}" IMAGE_TAG="$IMAGE_TAG" \
162
docker stack deploy -c docker-compose.yml \
163
--with-registry-auth --resolve-image always --prune "${STACK_NAME}"
164
0 commit comments