Skip to content

Commit 1d551bf

Browse files
committed
r: init builds
1 parent bbbd54a commit 1d551bf

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/ci_master.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,5 @@ jobs:
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

src/env.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)