From ba56eca80bb4e648de130181c5820af9c7744bb1 Mon Sep 17 00:00:00 2001 From: William Blevins Date: Fri, 9 Jul 2021 11:31:20 -0400 Subject: [PATCH] Disable CI systems who may not want to push to DockerHub. --- .cicd/create-docker-from-binary.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.cicd/create-docker-from-binary.sh b/.cicd/create-docker-from-binary.sh index eac0ec34b..465a4312a 100755 --- a/.cicd/create-docker-from-binary.sh +++ b/.cicd/create-docker-from-binary.sh @@ -16,7 +16,11 @@ echo "$ $DOCKER_BUILD" eval $DOCKER_BUILD # docker tag echo '--- :label: Tag Container' -REGISTRIES=("$EOSIO_CDT_REGISTRY" "$DOCKERHUB_REGISTRY") +if [[ "$BUILDKITE_PIPELINE_SLUG" =~ "-sec" ]] ; then + REGISTRIES=("$EOSIO_CDT_REGISTRY") +else + REGISTRIES=("$EOSIO_CDT_REGISTRY" "$DOCKERHUB_REGISTRY") +fi for REG in ${REGISTRIES[@]}; do DOCKER_TAG_BRANCH="docker tag '$IMAGE' '$REG:$SANITIZED_BRANCH'" echo "$ $DOCKER_TAG_BRANCH"