Skip to content

Commit

Permalink
fix: removing repo from server
Browse files Browse the repository at this point in the history
  • Loading branch information
Regikon committed Dec 18, 2024
1 parent 9acb0f8 commit b824f94
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ jobs:
username: ${{ secrets.USER_NAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: |
cd ~/CD
sudo docker compose -f ./all-services-compose.yaml down
cd ~
sudo rm -rf ~/CD/*
sudo rm -rf ~/CD
mkdir ~/CD
cd ~/CD
git clone https://github.com/go-park-mail-ru/2024_2_VKatuny.git .
cp ~/configs/conf.yml ./configs/
cp ~/configs/tern.conf ./db/migrations/
cp ~/configs/prometheus.yml ./configs/
cp ~/configs/.env ./
sudo docker compose -f ./all-services-compose.yaml down
sudo docker compose -f ./all-services-compose.yaml build
sudo docker compose -f ./all-services-compose.yaml up -d
cd ./db/migrations/
Expand Down

0 comments on commit b824f94

Please sign in to comment.