This commit is contained in:
2026-08-20 10:22:51 +08:00
parent d36e480413
commit 7a5719b5a1
5 changed files with 151 additions and 128 deletions
@@ -64,6 +64,12 @@ if [ "${DEVELOPMENT_DEPLOY_LOCAL:-false}" = "true" ]; then
export DEPLOY_ENV=development
export IMAGE_REPOSITORY IMAGE_TAG
docker compose \
--project-name firstleg-development \
--env-file .env \
-f docker-compose.yml \
pull $SERVICES
docker compose \
--project-name firstleg-development \
--env-file .env \
+6 -11
View File
@@ -79,22 +79,17 @@ if [ "$DEPLOY_ENV" = "development" ]; then
"$IMAGE_REPOSITORY" "$IMAGE_TAG" "$SERVICE_CSV" "$ENV_FILE"
fi
PULL_POLICY_ARGS=""
if [ "$DEPLOY_ENV" = "test" ]; then
PULL_POLICY_ARGS="--pull never"
else
docker compose \
--project-name "firstleg-${DEPLOY_ENV}" \
--env-file "$ENV_FILE" \
-f deploy/docker-compose.yml \
pull $SERVICES
fi
docker compose \
--project-name "firstleg-${DEPLOY_ENV}" \
--env-file "$ENV_FILE" \
-f deploy/docker-compose.yml \
pull $SERVICES
docker compose \
--project-name "firstleg-${DEPLOY_ENV}" \
--env-file "$ENV_FILE" \
-f deploy/docker-compose.yml \
up -d --remove-orphans $PULL_POLICY_ARGS $SERVICES
up -d --remove-orphans --pull never $SERVICES
docker compose \
--project-name "firstleg-${DEPLOY_ENV}" \