Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wcc723 committed Oct 4, 2023
1 parent 8ab8764 commit 9a22615
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ 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"
- name: Deploy with Docker Compose
run: |
ssh root@${{secrets.HOST_NAME}} "docker-compose -f /root/docker-compose.yml up -d"

0 comments on commit 9a22615

Please sign in to comment.