-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'hack/libbuild/' changes from ef11790..d6d6779
d6d6779 Avoid adding .exe when uploading file. 9306596 Use $DOCKER_REGISTRY in build command f2b13fe Load lib.sh from project specific files. cf9de3a Introduce DOCKER_REGISTRY env variable (#4) a512ccd Move project specific docker methods to their own files. (#3) f46deb7 Add k8sdb & cowrypay scripts. (#2) 3313b96 Skip files for update_registry git-subtree-dir: hack/libbuild git-subtree-split: d6d67790a854e56b6f0c201052cfb5339b34d068
- Loading branch information
Showing
6 changed files
with
289 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
#!/bin/bash | ||
|
||
DOCKER_REGISTRY=${DOCKER_REGISTRY:-cowrypay} | ||
source $(dirname "${BASH_SOURCE}")/lib.sh | ||
|
||
# override this one if you need to change push & pull | ||
docker_push() { | ||
hub_canary | ||
} | ||
|
||
docker_pull() { | ||
hub_pull | ||
} | ||
|
||
|
||
source_repo() { | ||
RETVAL=0 | ||
|
||
if [ $# -eq 0 ]; then | ||
cmd=${DEFAULT_COMMAND:-build} | ||
$cmd | ||
exit $RETVAL | ||
fi | ||
|
||
case "$1" in | ||
build) | ||
build | ||
;; | ||
build_binary) | ||
build_binary | ||
;; | ||
build_docker) | ||
build_docker | ||
;; | ||
clean) | ||
clean | ||
;; | ||
push) | ||
docker_push | ||
;; | ||
pull) | ||
docker_pull | ||
;; | ||
release) | ||
docker_release | ||
;; | ||
check) | ||
docker_check | ||
;; | ||
run) | ||
docker_run | ||
;; | ||
sh) | ||
docker_sh | ||
;; | ||
rm) | ||
docker_rm | ||
;; | ||
rmi) | ||
docker_rmi | ||
;; | ||
*) (10) | ||
echo $"Usage: $0 {build|build_binary|build_docker|clean|push|pull|release|check|sh|rm|rmi}" | ||
RETVAL=1 | ||
esac | ||
exit $RETVAL | ||
} | ||
|
||
binary_repo() { | ||
RETVAL=0 | ||
|
||
if [ $# -eq 0 ]; then | ||
cmd=${DEFAULT_COMMAND:-build} | ||
$cmd | ||
exit $RETVAL | ||
fi | ||
|
||
case "$1" in | ||
build) | ||
build | ||
;; | ||
clean) | ||
clean | ||
;; | ||
push) | ||
docker_push | ||
;; | ||
pull) | ||
docker_pull | ||
;; | ||
release) | ||
docker_release | ||
;; | ||
check) | ||
docker_check | ||
;; | ||
run) | ||
docker_run | ||
;; | ||
sh) | ||
docker_sh | ||
;; | ||
rm) | ||
docker_rm | ||
;; | ||
rmi) | ||
docker_rmi | ||
;; | ||
*) (10) | ||
echo $"Usage: $0 {build|clean|push|pull|release|check|sh|rm|rmi}" | ||
RETVAL=1 | ||
esac | ||
exit $RETVAL | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
#!/bin/bash | ||
|
||
DOCKER_REGISTRY=${DOCKER_REGISTRY:-k8sdb} | ||
source $(dirname "${BASH_SOURCE}")/lib.sh | ||
|
||
# override this one if you need to change push & pull | ||
docker_push() { | ||
hub_canary | ||
} | ||
|
||
docker_pull() { | ||
hub_pull | ||
} | ||
|
||
|
||
source_repo() { | ||
RETVAL=0 | ||
|
||
if [ $# -eq 0 ]; then | ||
cmd=${DEFAULT_COMMAND:-build} | ||
$cmd | ||
exit $RETVAL | ||
fi | ||
|
||
case "$1" in | ||
build) | ||
build | ||
;; | ||
build_binary) | ||
build_binary | ||
;; | ||
build_docker) | ||
build_docker | ||
;; | ||
clean) | ||
clean | ||
;; | ||
push) | ||
docker_push | ||
;; | ||
pull) | ||
docker_pull | ||
;; | ||
release) | ||
docker_release | ||
;; | ||
check) | ||
docker_check | ||
;; | ||
run) | ||
docker_run | ||
;; | ||
sh) | ||
docker_sh | ||
;; | ||
rm) | ||
docker_rm | ||
;; | ||
rmi) | ||
docker_rmi | ||
;; | ||
*) (10) | ||
echo $"Usage: $0 {build|build_binary|build_docker|clean|push|pull|release|check|sh|rm|rmi}" | ||
RETVAL=1 | ||
esac | ||
exit $RETVAL | ||
} | ||
|
||
binary_repo() { | ||
RETVAL=0 | ||
|
||
if [ $# -eq 0 ]; then | ||
cmd=${DEFAULT_COMMAND:-build} | ||
$cmd | ||
exit $RETVAL | ||
fi | ||
|
||
case "$1" in | ||
build) | ||
build | ||
;; | ||
clean) | ||
clean | ||
;; | ||
push) | ||
docker_push | ||
;; | ||
pull) | ||
docker_pull | ||
;; | ||
release) | ||
docker_release | ||
;; | ||
check) | ||
docker_check | ||
;; | ||
run) | ||
docker_run | ||
;; | ||
sh) | ||
docker_sh | ||
;; | ||
rm) | ||
docker_rm | ||
;; | ||
rmi) | ||
docker_rmi | ||
;; | ||
*) (10) | ||
echo $"Usage: $0 {build|clean|push|pull|release|check|sh|rm|rmi}" | ||
RETVAL=1 | ||
esac | ||
exit $RETVAL | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.