Skip to content

Commit 74d4499

Browse files
committed
feat/ci: Add main branch checkout
Signed-off-by: SeeuSim <[email protected]>
1 parent fc173e8 commit 74d4499

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-docker.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
id: set-matrix
4646
run: |
4747
matrix=()
48-
if [[ "${{ steps.filter.outputs.user }}" == "true" ]] || [[ "${{ contains(github.ref, 'main') }}" == "true" ]]; then
48+
if [[ "${{ steps.filter.outputs.user || contains(github.ref, 'main') }}" == "true" ]]; then
4949
matrix+=("{
5050
\"package\": \"user\",
5151
\"image\": \"$DOCKER_REGISTRY_USN/user-express\",
@@ -54,7 +54,7 @@ jobs:
5454
\"build-args\": \"port=$USER_EXPRESS_PORT\"
5555
}")
5656
fi
57-
if [[ "${{ steps.filter.outputs.question }}" == "true" ]] || [[ "${{ contains(github.ref, 'main') }}" == "true" ]]; then
57+
if [[ "${{ steps.filter.outputs.question || contains(github.ref, 'main') }}" == "true" ]]; then
5858
matrix+=("{
5959
\"package\": \"question\",
6060
\"image\": \"$DOCKER_REGISTRY_USN/question-express\",
@@ -63,7 +63,7 @@ jobs:
6363
\"build-args\": \"port=$QUESTION_EXPRESS_PORT\"
6464
}")
6565
fi
66-
if [[ "${{ steps.filter.outputs.collaboration }}" == "true" ]] || [[ "${{ contains(github.ref, 'main') }}" == "true" ]]; then
66+
if [[ "${{ steps.filter.outputs.collaboration || contains(github.ref, 'main') }}" == "true" ]]; then
6767
matrix+=("{
6868
\"package\": \"collaboration\",
6969
\"image\": \"$DOCKER_REGISTRY_USN/collab-express\",
@@ -72,7 +72,7 @@ jobs:
7272
\"build-args\": \"port=$COLLAB_EXPRESS_PORT\"
7373
}")
7474
fi
75-
if [[ "${{ steps.filter.outputs.matching }}" == "true" ]] || [[ "${{ contains(github.ref, 'main') }}" == "true" ]]; then
75+
if [[ "${{ steps.filter.outputs.matching || contains(github.ref, 'main') }}" == "true" ]]; then
7676
matrix+=("{
7777
\"package\": \"matching\",
7878
\"image\": \"$DOCKER_REGISTRY_USN/match-express\",
@@ -81,7 +81,7 @@ jobs:
8181
\"build-args\": \"port=$MATCH_EXPRESS_PORT\"
8282
}")
8383
fi
84-
if [[ "${{ steps.filter.outputs.frontend }}" == "true" ]] || [[ "${{ contains(github.ref, 'main') }}" == "true" ]]; then
84+
if [[ "${{ steps.filter.outputs.frontend || contains(github.ref, 'main') }}" == "true" ]]; then
8585
matrix+=("{
8686
\"package\": \"frontend\",
8787
\"image\": \"$DOCKER_REGISTRY_USN/frontend\",

0 commit comments

Comments
 (0)