added script, fixed existing script. Docker context error persists -> autodeploy disabled
This commit is contained in:
parent
b8dedae33b
commit
90ec791a99
|
@ -7,10 +7,10 @@ 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=$(dockerps -aqf "name=site")
|
OLD_CONTAINER=$(docker ps -aqf "name=site")
|
||||||
echo "$(date --utc +%FT%TZ): Scaling server up..."
|
echo "$(date --utc +%FT%TZ): Scaling server up..."
|
||||||
BUILD_VERSION=$BUILD_VERSION docker compose up -d --no-deps --scale site=2 --no-recreate site
|
BUILD_VERSION=$BUILD_VERSION docker compose up -d --no-deps --scale site=2 --no-recreate site
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue