feat: Upgrade command to use docker compose v2
This commit is contained in:
parent
1a2c8fa3fd
commit
65a8c9b939
|
@ -64,7 +64,7 @@ prod() {
|
||||||
hugo --minify --environment production
|
hugo --minify --environment production
|
||||||
node themes/hugo-theme-lowtech/scripts/typo
|
node themes/hugo-theme-lowtech/scripts/typo
|
||||||
#DATE=`date +\"%Y0101\"` && find public -exec touch -d $DATE {} +
|
#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() {
|
staging() {
|
||||||
|
@ -75,7 +75,7 @@ staging() {
|
||||||
hugo --minify -DF --environment staging
|
hugo --minify -DF --environment staging
|
||||||
node themes/hugo-theme-lowtech/scripts/typo
|
node themes/hugo-theme-lowtech/scripts/typo
|
||||||
#DATE=`date +\"%Y0101\"` && find public -exec touch -d $DATE {} +
|
#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() {
|
favicons() {
|
||||||
|
|
Loading…
Reference in New Issue