Update build-and-deploy.yml
Removing old containers during deploy
This commit is contained in:
parent
5c82dd84b4
commit
fdb7d2bf64
1
.github/workflows/build-and-deploy.yml
vendored
1
.github/workflows/build-and-deploy.yml
vendored
|
@ -78,6 +78,7 @@ jobs:
|
||||||
cd /home/${{ secrets.SSH_USER }}/
|
cd /home/${{ secrets.SSH_USER }}/
|
||||||
touch acme.json
|
touch acme.json
|
||||||
sudo chmod 0600 acme.json
|
sudo chmod 0600 acme.json
|
||||||
|
sudo docker-compose down --remove-orphans
|
||||||
sudo echo "PUB_IP=$(wget -qO- http://ipecho.net/plain | xargs echo)" | sed -e 's/\./-/g' > .env
|
sudo echo "PUB_IP=$(wget -qO- http://ipecho.net/plain | xargs echo)" | sed -e 's/\./-/g' > .env
|
||||||
sudo docker-compose up -d
|
sudo docker-compose up -d
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user