From 21b835ba5a087104a0c7b166b60555408fc81ea0 Mon Sep 17 00:00:00 2001 From: holzmaster Date: Fri, 22 Mar 2024 01:49:02 +0100 Subject: [PATCH] Add deploy script --- .infra/deploy.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .infra/deploy.sh diff --git a/.infra/deploy.sh b/.infra/deploy.sh new file mode 100644 index 00000000..f41a9dae --- /dev/null +++ b/.infra/deploy.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -xeuo pipefail + +cd /home/csc + +export DOCKER_BUILDKIT=1 +docker build --pull . -t csz-bot:latest +docker compose up -d --remove-orphans +docker image prune -a -f