Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(ci): fix cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Aug 16, 2019
1 parent 68b3b58 commit 469bc51
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.