Skip to content

Commit 62a4da0

Browse files
ci: add example-services submodule check to justfile init
1 parent ef7f2ea commit 62a4da0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎justfile‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ RUNNER := `command -v docker || command -v podman`
33

44
default: compose serve
55

6-
init:
7-
git submodule update --init --recursive
6+
init-example-services:
7+
#!/usr/bin/env bash
8+
# Clone the example-services submodule if needed but leave it alone otherwise
9+
if [[ $(git submodule status example-services) =~ ^- ]]; then
10+
git submodule update --init example-services
11+
fi
812
913
compose +ARGS="up -d --no-recreate": init
1014
{{ RUNNER }} compose -f tests/system_tests/compose.yaml {{ARGS}}

0 commit comments

Comments
 (0)