File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1- name : ' Delete old artifacts'
1+ name : ' Delete old artifacts and clean docker '
22on :
33 schedule :
4- - cron : ' * 12 10-16/2 * *' # every hour
4+ - cron : ' * 12 10-16/2 * *' # every 2 days
55
66jobs :
7+ clean-docker :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@v2
12+ - name : Run docker cleaner
13+ uses : appleboy/ssh-action@master
14+ with :
15+ host : ${{ secrets.SSH_HOST }}
16+ username : ${{ secrets.SSH_USERNAME }}
17+ key : ${{ secrets.SSH_SECRET }}
18+ port : ${{ secrets.SSH_PORT }}
19+ script : |
20+ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock zzrot/docker-clean run
21+ docker system prune -f
722 delete-artifacts :
823 runs-on : ubuntu-latest
924 steps :
Original file line number Diff line number Diff line change 2727 cd /srv/edt-offline
2828 git checkout .
2929 git pull origin main
30- docker compose -f docker/demo/docker-compose.yml down
30+ docker compose -f docker/demo/docker-compose.yml build --no-cache
3131 docker compose -f docker/demo/docker-compose.yml up -d --build
You can’t perform that action at this time.
0 commit comments