File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,24 @@ tasks:
2323 cmds :
2424 - |
2525 docker network create \
26- --driver bridge \
27- app-tier
26+ --driver bridge \
27+ app-tier
28+ status :
29+ - |
30+ docker network ls --format \{\{.Name\}\} \
31+ | grep -q '^app-tier$'
2832
2933 vol :
3034 desc : " Create docker volume"
3135 cmds :
3236 - |
3337 docker volume create \
34- --driver local \
35- {{.SERVICE}}-vol
38+ --driver local \
39+ {{.SERVICE}}-vol
40+ status :
41+ - |
42+ docker volume ls --format \{\{.Name\}\} \
43+ | grep -q '^{{.SERVICE}}-vol$'
3644
3745 build :
3846 desc : " Build the docker image"
@@ -45,11 +53,11 @@ tasks:
4553 task docker:build
4654 cmds :
4755 - |
48- if [[ -z "{{.CLI_ARGS}}" ]]; then
49- {{.BUILD}} {{.DOCKERFILE}} {{.SERVICE}}
50- else
51- {{.BUILD}} {{.CLI_ARGS }} {{.DOCKERFILE}} {{.SERVICE}}
52- fi
56+ docker build \
57+ -f {{.DOCKERFILE}} \
58+ -t {{.SERVICE}} \
59+ --platform {{.ARCH }} \
60+ .
5361
5462 login :
5563 desc : " Login to the container registry"
6068 --password-stdin {{.REGISTRY_URL}}
6169 run : once
6270 silent : true
71+ status :
72+ - |
73+ jq -e '.auths | keys[] | select(contains("{{.REGISTRY_URL}}"))' ~/.docker/config.json
6374
6475 push :
6576 desc : " Push the docker image to the registry"
You can’t perform that action at this time.
0 commit comments