Update deploy.yml
All checks were successful
Build and push container image / build (push) Successful in 9m58s

This commit is contained in:
toast 2024-01-30 23:41:42 +11:00
parent b238c9f077
commit dd9ee41287
2 changed files with 3 additions and 1 deletions

View File

@ -16,5 +16,5 @@ jobs:
port: ${{ secrets.SSH_PORT }} port: ${{ secrets.SSH_PORT }}
script: | script: |
cd kon && docker compose pull && \ cd kon && docker compose pull && \
docker compose down --remove-orphans && docker compose up -d && \ docker compose down bot --remove-orphans && docker compose up -d bot && \
docker image prune -f && docker system prune -f docker image prune -f && docker system prune -f

View File

@ -7,6 +7,8 @@ services:
env_file: env_file:
- .env - .env
restart: unless-stopped restart: unless-stopped
depends_on:
- db
db: db:
container_name: kon-database container_name: kon-database
image: postgres:16.1-alpine3.19@sha256:b1413d8f37470f1fb355ea833d91855d6e24929e8f4336984c5be0de62947a25 image: postgres:16.1-alpine3.19@sha256:b1413d8f37470f1fb355ea833d91855d6e24929e8f4336984c5be0de62947a25