Skip to content

Commit 5a15674

Browse files
committed
generate and redirect compose file
docker engine does not support extends in compose files... moby/moby#31101
1 parent 588da5d commit 5a15674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cd.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
eval $(ssh-agent)
2828
ssh-add "$HOME/.ssh/docker"
2929
echo "crossroadsajax.church $SSH_KNOWN_HOST" >> ~/.ssh/known_hosts
30-
docker --host "ssh://[email protected]" stack deploy -c prod.yml --with-registry-auth prod
30+
docker --host "ssh://[email protected]" stack deploy --compose-file <(docker-compose -f prod.yml config) --with-registry-auth prod
3131
shell: bash
3232
env:
3333
SSH_PRIV_KEY: ${{ secrets.DOCKER_SSH_PRIVATE_KEY }}
@@ -57,7 +57,7 @@ jobs:
5757
eval $(ssh-agent)
5858
ssh-add "$HOME/.ssh/docker"
5959
echo "crossroadsajax.church $SSH_KNOWN_HOST" >> ~/.ssh/known_hosts
60-
docker --host "ssh://[email protected]" stack deploy -c staging.yml --with-registry-auth staging
60+
docker --host "ssh://[email protected]" stack deploy --compose-file <(docker-compose -f staging.yml config) --with-registry-auth staging
6161
shell: bash
6262
env:
6363
SSH_PRIV_KEY: ${{ secrets.DOCKER_SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)