Skip to content

Commit b3e9777

Browse files
authored
Merge pull request #139 from NotYuSheng/feat/ghcr-static-services
feat: use static service list for GHCR workflow
2 parents 860e67e + d03a893 commit b3e9777

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.github/services-to-build.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Services to build and push to GHCR
2+
# One service name per line
3+
# Comments (lines starting with #) and empty lines are ignored
4+
5+
# Core Application Services
6+
chat_service
7+
embedder_service
8+
pdf_processor_service
9+
pdf_extraction_service
10+
pdf_renderer_service
11+
docling_translation_service
12+
13+
# Additional services
14+
cleaner

.github/workflows/publish-ghcr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ jobs:
8080
echo "Created $(dirname "$f")/.env"
8181
done
8282
83-
- name: Build, tag, and push all *_service Docker Compose services
83+
- name: Build, tag, and push services from services-to-build.txt
8484
run: |
8585
set -e
8686
87-
SERVICES=$(docker compose config --services | grep '_service$')
88-
echo "Filtered services: $SERVICES"
87+
SERVICES=$(grep -v '^#' .github/services-to-build.txt | grep -v '^$')
88+
echo "Services to build: $SERVICES"
8989
9090
for SERVICE in $SERVICES; do
9191
IMAGE_NAME="ghcr.io/${{ env.REPO_OWNER_LC }}/$SERVICE:${{ env.GIT_TAG }}"

0 commit comments

Comments
 (0)