Skip to content
Permalink
Browse files

fix(ci): fix cd pipeline

  • Loading branch information...
hanxiao committed Aug 16, 2019
1 parent 68b3b58 commit 469bc51d5586686687df8f11472296e30bb4ff99
Showing with 5 additions and 4 deletions.
  1. +5 −4 docker-build.sh
@@ -63,24 +63,25 @@ done
# make alpine as default
ALPINE_TAG="${PROJ_NAME}:${VER_TAG}-alpine"
DEFAULT_TAG="${PROJ_NAME}:${VER_TAG}"
docker tag ${ALPINE_TAG} ${DEFAULT_TAG}

if [[ -z "${HUB_USER}" ]]; then
printf "\$HUB_USER not set, pass\n"
else
docker tag ${ALPINE_TAG} ${DEFAULT_TAG} && docker push gnes/${DEFAULT_TAG}
docker push gnes/${DEFAULT_TAG}
fi

if [[ -z "${TCLOUD_USER}" ]]; then
printf "\$TCLOUD_USER not set, pass\n"
printf "\$TCLOUD_USER not set, pass\n"
else
docker tag ${ALPINE_TAG} ${DEFAULT_TAG} && docker push ccr.ccs.tencentyun.com/gnes/${DEFAULT_TAG}
docker push ccr.ccs.tencentyun.com/gnes/${DEFAULT_TAG}
fi

if [[ -z "${BADGE_WEBHOOK}" ]]; then
printf "\$BADGE_WEBHOOK not set, pass\n"
else
curl -X POST -H 'Content-type: application/json' --data '{}' ${BADGE_WEBHOOK}
printf "informed minibadger to update docker information"
printf "informed minibadger to update docker information\n"
fi


0 comments on commit 469bc51

Please sign in to comment.
You can’t perform that action at this time.