Skip to content

Commit 6592dca

Browse files
committed
add in scp
1 parent f8d4925 commit 6592dca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/deploy.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
with:
1919
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
2020

21+
- name: Copy over the docker compose file
22+
run: |
23+
scp -o StrictHostKeyChecking=no compose.prod.yaml deploytest@zenful.cloud:guestbook/compose.yaml
2124
- name: Deploy code via SSH
2225
run: |
23-
DOCKER_HOST="ssh://deploytest@zenful.cloud" docker-compose up -d
24-
#ssh -o StrictHostKeyChecking=no deploytest@zenful.cloud "cd guestbook && docker compose up -d"
26+
ssh -o StrictHostKeyChecking=no deploytest@zenful.cloud "cd guestbook && docker compose up -d"

0 commit comments

Comments
 (0)