stop-devouch-main #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: stop-devouch-main | |
on: | |
workflow_dispatch: | |
jobs: | |
stop: | |
name: Stop Devouch | |
runs-on: ubuntu-latest | |
steps: | |
- name: Stop Devouch | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.PROD_HOST }} | |
username: ${{ secrets.PROD_USERNAME }} | |
key: ${{ secrets.PROD_PRIVATE_KEY }} | |
port: 22 | |
script: | | |
cd $HOME/DeVouch-BE | |
docker compose stop devouch squid-db | |
docker compose rm -f -v devouch squid-db | |
docker rmi -f $(docker images | grep 'devouch' | awk '{print $3}') | |
docker volume rm $(docker volume ls | grep 'db-data' | awk '{print $2}') |