added script, fixed existing script. Docker context error persists -> autodeploy disabled

This commit is contained in:
Ulysia 2024-08-27 06:38:56 +00:00
parent b8dedae33b
commit 90ec791a99
2 changed files with 5 additions and 2 deletions

View file

@ -7,7 +7,7 @@ BUILD_VERSION=$(git rev-parse HEAD)
echo "$(date --utc +%FT%TZ): Releasing new server version. $BUILD_VERSION" echo "$(date --utc +%FT%TZ): Releasing new server version. $BUILD_VERSION"
echo "$(date --utc +%FT%TZ): Running build..." echo "$(date --utc +%FT%TZ): Running build..."
docker compose rm -f # docker compose rm -f
docker compose build docker compose build
OLD_CONTAINER=$(docker ps -aqf "name=site") OLD_CONTAINER=$(docker ps -aqf "name=site")

3
update.sh Executable file
View file

@ -0,0 +1,3 @@
#! /bin/sh
docker compose down && docker compose build && docker compose up -d