ci: default image names when secrets are empty
Some checks failed
Deploy to Production / deploy (push) Failing after 9s

This commit is contained in:
codex
2026-03-11 17:32:28 +08:00
parent e860fd0607
commit 2fe5a7f54e

View File

@@ -43,6 +43,10 @@ jobs:
DOCKER_IMAGE_FRONTEND=${{ secrets.DOCKER_IMAGE_FRONTEND }}
ENVEOF
# Fallback defaults if image name secrets are empty
sed -i 's/^DOCKER_IMAGE_BACKEND=$/DOCKER_IMAGE_BACKEND=backend/' .env.production
sed -i 's/^DOCKER_IMAGE_FRONTEND=$/DOCKER_IMAGE_FRONTEND=frontend/' .env.production
- name: Build Docker images
run: docker compose --env-file .env.production -f compose.prod.yml build