Skip to content

Commit 97473fc

Browse files
authored
Update auto deployment workflow to include rm stack and system prune (#95)
1 parent f35ad82 commit 97473fc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,9 @@ jobs:
3535
script: |
3636
export IMAGE_TAG=${{ steps.vars.outputs.sha_short }}
3737
cd docker-compose
38+
docker stack rm the-stack
39+
sleep 20s
40+
sudo systemctl stop nginx
41+
sudo systemctl restart nginx
3842
docker stack deploy -c docker-compose.yml the-stack
43+
yes | docker system prune -a

0 commit comments

Comments
 (0)