Skip to content

Commit

Permalink
update upload docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Wcc723 committed Oct 4, 2023
1 parent 1fa54eb commit 8ab8764
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
echo "Transferring .env file to remote server"
scp .env root@${{ secrets.HOST_NAME }}:/root/.env
- name: Upload docker-compose.yml to remote server
run: |
scp ./docker-compose.yml root@${{ secrets.HOST_NAME }}:/root/docker-compose.yml
- name: Copy docker-compose.yml to remote server
run: |
ssh root@${{ secrets.HOST_NAME }} "docker-compose --env-file /root/.env -f /root/docker-compose.yml up -d"

0 comments on commit 8ab8764

Please sign in to comment.