Skip to content

Commit 9abee5c

Browse files
committed
feat/ci: Add main branch build matrix
Signed-off-by: SeeuSim <[email protected]>
1 parent 0f6bb71 commit 9abee5c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/build-docker.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ jobs:
5454
"dockerfile": "./backend/user/express.Dockerfile",
5555
"build-args": "port=$USER_EXPRESS_PORT"
5656
}
57-
EOF
58-
)
57+
EOF)
5958
matrix+=("$config")
6059
fi
6160
if [[ "${{ steps.filter.outputs.question }}" == "true" || "${{ contains(github.ref, 'main') }}" == "true" ]]; then
@@ -67,8 +66,7 @@ jobs:
6766
"dockerfile": "./backend/question/express.Dockerfile",
6867
"build-args": "port=$QUESTION_EXPRESS_PORT"
6968
}
70-
EOF
71-
)
69+
EOF)
7270
matrix+=("$config")
7371
fi
7472
if [[ "${{ steps.filter.outputs.collaboration }}" == "true" || "${{ contains(github.ref, 'main') }}" == "true" ]]; then
@@ -80,8 +78,7 @@ jobs:
8078
"dockerfile": "./backend/collaboration/express.Dockerfile",
8179
"build-args": "port=$COLLAB_EXPRESS_PORT"
8280
}
83-
EOF
84-
)
81+
EOF)
8582
matrix+=("$config")
8683
fi
8784
if [[ "${{ steps.filter.outputs.matching }}" == "true" || "${{ contains(github.ref, 'main') }}" == "true" ]]; then
@@ -93,8 +90,7 @@ jobs:
9390
"dockerfile": "./backend/matching/express.Dockerfile",
9491
"build-args": "port=$MATCH_EXPRESS_PORT"
9592
}
96-
EOF
97-
)
93+
EOF)
9894
matrix+=("$config")
9995
fi
10096
if [[ "${{ steps.filter.outputs.frontend }}" == "true" || "${{ contains(github.ref, 'main') }}" == "true" ]]; then
@@ -106,8 +102,7 @@ jobs:
106102
"dockerfile": "./frontend/frontend.Dockerfile",
107103
"build-args": "port=$FRONTEND_PORT"
108104
}
109-
EOF
110-
)
105+
EOF)
111106
matrix+=("$config")
112107
fi
113108
formatted_matrix=$(echo "[${matrix[*]}]" | jq -c .)

0 commit comments

Comments
 (0)