Skip to content

Commit 1493798

Browse files
committed
PEER-236: Update CI file
Signed-off-by: SeeuSim <[email protected]>
1 parent 0b5ff2e commit 1493798

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build-deploy-docker.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ env:
1616
QUESTION_EXPRESS_PORT: 9002
1717
COLLAB_EXPRESS_PORT: 9003
1818
MATCH_EXPRESS_PORT: 9004
19+
CHAT_EXPRESS_PORT: 9005
1920
FRONTEND_PORT: 3000
2021

2122
jobs:
@@ -44,6 +45,8 @@ jobs:
4445
- 'backend/collaboration/**'
4546
matching:
4647
- 'backend/matching/**'
48+
chat:
49+
- 'backend/chat/**'
4750
frontend:
4851
- 'frontend/**'
4952
- name: output-job-matrix
@@ -91,6 +94,16 @@ jobs:
9194
'{package: $pkg, image: $img, context: $ctx, dockerfile: $dkr, "build-args": $bag}')
9295
matrix+=("$config")
9396
fi
97+
if [[ "${{ steps.filter.outputs.chat }}" == "true" || "$is_main" == "true" ]]; then
98+
config=$(jq -n \
99+
--arg pkg "chat" \
100+
--arg img "$DOCKER_REGISTRY_USN/chat-express" \
101+
--arg ctx "./backend/chat" \
102+
--arg dkr "./backend/chat/express.Dockerfile" \
103+
--arg bag "port=$CHAT_EXPRESS_PORT" \
104+
'{package: $pkg, image: $img, context: $ctx, dockerfile: $dkr, "build-args": $bag}')
105+
matrix+=("$config")
106+
fi
94107
if [[ "${{ steps.filter.outputs.frontend }}" == "true" || "$is_main" == "true" ]]; then
95108
config=$(jq -n \
96109
--arg pkg "frontend" \

0 commit comments

Comments
 (0)