]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-container-build-push-imgs: use a script from ceph-container 973/head
authorSébastien Han <seb@redhat.com>
Tue, 27 Feb 2018 20:44:21 +0000 (21:44 +0100)
committerSébastien Han <seb@redhat.com>
Tue, 27 Feb 2018 20:44:21 +0000 (21:44 +0100)
Let's execute a script in the ceph-container project instead of writting
the script here.
ceph-build does the CI so let's keep it that way.

Signed-off-by: Sébastien Han <seb@redhat.com>
ceph-container-build-push-imgs/build/build

index 6bbb9a631460d12cd4ce0f2cf89355c4814f15f9..718ed42d602dbb46a129099f980846bf11fec71f 100644 (file)
@@ -2,32 +2,5 @@
 set -e
 
 
-#############
-# FUNCTIONS #
-#############
-
-function login_docker_hub {
-  echo "Login in the Docker Hub"
-  docker login -u "$DOCKER_HUB_USERNAME" -p "$DOCKER_HUB_PASSWORD"
-}
-
-function build_ceph_imgs {
-  make build.parallel
-}
-
-function push_ceph_imgs {
-  make push
-}
-
-
-########
-# MAIN #
-########
-
-login_docker_hub
-set -x
 cd "$WORKSPACE"/ceph-container/ || exit
-build_ceph_imgs
-push_ceph_imgs
-cd - || exit
-
+bash -x contrib/build-push-ceph-container-imgs.sh