Skip to content

Commit

Permalink
Continue to fix bugs encountered in daily release
Browse files Browse the repository at this point in the history
Signed-off-by: hwdef <[email protected]>
  • Loading branch information
hwdef committed Aug 20, 2022
1 parent 55e1cb1 commit 4d230ab
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions hack/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,11 @@ set -o pipefail
# 7. generate zip file

VK_ROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/..
BINARY_FOLDER=${VK_ROOT}/${BIN_DIR}/${REL_OSARCH}
RELEASE_FOLDER=${VK_ROOT}/${RELEASE_DIR}
RELEASE_BINARY=${RELEASE_FOLDER}/bin
README_FILE=${VK_ROOT}/installer/README.md
HELM_FOLDER=${VK_ROOT}/installer/helm
VOLCANO_IMAGE_TAG=${TAG:-"latest"}
DOCKER_PASSWORD=${DOCKER_PASSWORD:-""}
DOCKER_USERNAME=${DOCKER_USERNAME:-""}
LICENSE_FILE=${VK_ROOT}/LICENSE

if [[ ! -d ${RELEASE_BINARY} ]];then
mkdir ${RELEASE_BINARY}
fi

cp -r ${BINARY_FOLDER} ${RELEASE_BINARY}

cp ${README_FILE} ${RELEASE_FOLDER}

cp -r ${HELM_FOLDER} ${RELEASE_FOLDER}
Expand All @@ -57,27 +46,6 @@ fi
# overwrite the tag name into values yaml
sed -i "s/latest/${VOLCANO_IMAGE_TAG}/g" ${RELEASE_FOLDER}/helm/chart/volcano/values.yaml

if [[ "${DOCKER_USERNAME}xxx" == "xxx" ]];then
if [[ "${DOCKER_PASSWORD}xxx" == "xxx" ]];then
echo "docker username or password not found, quit uploading images"
exit 0
fi
fi

echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
echo "pushing ${IMAGE_PREFIX}/vc-controller-manager:${VOLCANO_IMAGE_TAG}"
docker tag ${IMAGE_PREFIX}/vc-controller-manager:${VOLCANO_IMAGE_TAG} ${IMAGE_PREFIX}/vc-controllers:${VOLCANO_IMAGE_TAG}
docker push ${IMAGE_PREFIX}/vc-controllers:${VOLCANO_IMAGE_TAG}
docker push ${IMAGE_PREFIX}/vc-controller-manager:${VOLCANO_IMAGE_TAG}

echo "pushing ${IMAGE_PREFIX}/vc-scheduler:${VOLCANO_IMAGE_TAG}"
docker push ${IMAGE_PREFIX}/vc-scheduler:${VOLCANO_IMAGE_TAG}

echo "pushing ${IMAGE_PREFIX}/vc-webhook-manager:${VOLCANO_IMAGE_TAG}"
docker tag ${IMAGE_PREFIX}/vc-webhook-manager:${VOLCANO_IMAGE_TAG} ${IMAGE_PREFIX}/vc-admission:${VOLCANO_IMAGE_TAG}
docker push ${IMAGE_PREFIX}/vc-admission:${VOLCANO_IMAGE_TAG}
docker push ${IMAGE_PREFIX}/vc-webhook-manager:${VOLCANO_IMAGE_TAG}

echo "Generate release tar files"
cd ${RELEASE_FOLDER}/
tar -zcvf volcano-${VOLCANO_IMAGE_TAG}-${OSTYPE}.tar.gz *

0 comments on commit 4d230ab

Please sign in to comment.