feat: Upgrade command to use docker compose v2

This commit is contained in:
Simon 2021-11-18 18:38:15 +01:00
parent 1a2c8fa3fd
commit 65a8c9b939
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ prod() {
hugo --minify --environment production
node themes/hugo-theme-lowtech/scripts/typo
#DATE=`date +\"%Y0101\"` && find public -exec touch -d $DATE {} +
COMPOSE_DOCKER_CLI_BUILD=0 docker-compose --context $DOCKER_CONTEXT -f docker-compose.prod.yml up -d --build --force-recreate
DOCKER_CONTEXT=$DOCKER_CONTEXT docker compose -f docker-compose.prod.yml up -d --build --force-recreate
}
staging() {
@ -75,7 +75,7 @@ staging() {
hugo --minify -DF --environment staging
node themes/hugo-theme-lowtech/scripts/typo
#DATE=`date +\"%Y0101\"` && find public -exec touch -d $DATE {} +
COMPOSE_DOCKER_CLI_BUILD=0 docker-compose --context $DOCKER_CONTEXT -f docker-compose.staging.yml up -d --build --force-recreate
DOCKER_CONTEXT=$DOCKER_CONTEXT docker compose -f docker-compose.staging.yml up -d --build --force-recreate
}
favicons() {