暂存提交

This commit is contained in:
2026-07-30 22:36:54 +08:00
parent 1083c40070
commit 86547fc053
5 changed files with 48 additions and 25 deletions
+12 -6
View File
@@ -20,17 +20,23 @@ fi
SERVICES=$(printf '%s' "$SERVICE_CSV" | tr ',' ' ')
export DEPLOY_ENV IMAGE_REPOSITORY IMAGE_TAG
docker compose \
--project-name "firstleg-${DEPLOY_ENV}" \
--env-file "$ENV_FILE" \
-f deploy/docker-compose.yml \
pull $SERVICES
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 \
up -d --remove-orphans $SERVICES
up -d --remove-orphans $PULL_POLICY_ARGS $SERVICES
docker compose \
--project-name "firstleg-${DEPLOY_ENV}" \