Skip to content

Commit

Permalink
Update copy docker-compose.production.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Svidunovich authored and Kirill Svidunovich committed Nov 8, 2023
1 parent 54533f1 commit 5fbb9b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
source: "docker-compose.production.yml"
target: "/home/hr_praktikum/docker-compose.yml"
target: "/home/hr_praktikum/"
- name: Executing remote ssh commands to deploy
uses: appleboy/ssh-action@master
with:
Expand All @@ -96,6 +96,8 @@ jobs:
script: |
cd /home/hr_praktikum
sudo docker compose down
sudo rm docker-compose.yml
sudo mv docker-compose.production.yml docker-compose.yml
sudo docker image rm ${{ secrets.DOCKERHUB_USERNAME }}/hr_praktikum_backend
sudo docker image rm ${{ secrets.DOCKERHUB_USERNAME }}/hr_praktikum_gateway
sudo docker volume rm hr_praktikum_hr_praktikum_static_volume
Expand Down

0 comments on commit 5fbb9b9

Please sign in to comment.