ci: default image names when secrets are empty
Some checks failed
Deploy to Production / deploy (push) Failing after 9s
Some checks failed
Deploy to Production / deploy (push) Failing after 9s
This commit is contained in:
@@ -43,6 +43,10 @@ jobs:
|
|||||||
DOCKER_IMAGE_FRONTEND=${{ secrets.DOCKER_IMAGE_FRONTEND }}
|
DOCKER_IMAGE_FRONTEND=${{ secrets.DOCKER_IMAGE_FRONTEND }}
|
||||||
ENVEOF
|
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
|
- name: Build Docker images
|
||||||
run: docker compose --env-file .env.production -f compose.prod.yml build
|
run: docker compose --env-file .env.production -f compose.prod.yml build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user