build.sh: Add --local support for docker
This commit is contained in:
parent
687212a0a9
commit
57ff0c3205
1 changed files with 7 additions and 0 deletions
|
|
@ -255,6 +255,13 @@ ARCHIVE=$ARCHIVE \
|
|||
)}
|
||||
|
||||
build_docker() {
|
||||
if [ -n "${LOCAL-}" ]; then
|
||||
sh_c ./ci/release/docker/build.sh \
|
||||
${PUSH_DOCKER:+--push} \
|
||||
${LATEST_DOCKER:+--latest}
|
||||
return 0
|
||||
fi
|
||||
|
||||
sh_c lockfile_ssh "$CI_D2_LINUX_AMD64" .d2-build-lock
|
||||
sh_c gitsync "$CI_D2_LINUX_AMD64" src/d2
|
||||
sh_c ssh "$CI_D2_LINUX_AMD64" ./src/d2/ci/release/docker/build.sh \
|
||||
|
|
|
|||
Loading…
Reference in a new issue