File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 3434 - name : Clone project
3535 uses : actions/checkout@v4
3636
37- - name : Init env
38- run : ./docker/env.sh init
39-
4037 - name : Build, tag and push docker env
4138 run : ./docker/env.sh build --push
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ _help() {
5555 echo " exec [SERVICE] -- COMMAND|Execute a command in a dev env container"
5656 echo " up [OPTIONS]|Build/pull images, create and start dev containers"
5757 echo " down [OPTIONS]|Stop and remove dev containers"
58- echo " init|Init environment without building or pulling images"
58+ echo " build [OPTIONS]|Build dev env images"
59+ echo " init|Init dev env without building or pulling images"
5960 echo " compose [ARGUMENTS...]|Directly call 'docker compose' with project settings"
6061 echo
6162 echo \
@@ -317,14 +318,15 @@ else
317318 _compose down " $@ "
318319 ;;
319320
320- init )
321+ build )
321322 shift
322- _init " $@ "
323+ _init
324+ _compose build " $@ "
323325 ;;
324326
325- build )
327+ init )
326328 shift
327- _compose build " $@ "
329+ _init " $@ "
328330 ;;
329331
330332 compose)
You can’t perform that action at this time.
0 commit comments