Actually update the database container
Some checks failed
Build and push container image / build (push) Has been cancelled

This commit is contained in:
toast 2024-03-21 16:59:28 -04:00
parent c95dcc6173
commit e33487adc1

View File

@ -41,7 +41,7 @@ jobs:
cache-to: type=local,dest=/tmp/.build-cache cache-to: type=local,dest=/tmp/.build-cache
cache-from: type=local,src=/tmp/.buildx-cache,mode=max cache-from: type=local,src=/tmp/.buildx-cache,mode=max
- name: Container deployment - name: Update Delivery
uses: https://github.com/appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3 uses: https://github.com/appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
with: with:
host: ${{ secrets.SSH_HOST }} host: ${{ secrets.SSH_HOST }}
@ -50,6 +50,6 @@ jobs:
key: ${{ secrets.SSH_KEY }} key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }} port: ${{ secrets.SSH_PORT }}
script: | script: |
cd kon && docker compose pull && \ cd kon && docker compose && \
docker compose down bot --remove-orphans && docker compose up -d bot && \ docker compose down --remove-orphans && docker compose up -d && \
docker image prune -f && docker system prune -f docker image prune -f && docker system prune -f