Skip to content

Commit

Permalink
Add info messages in sidecar release scripts (minio#939)
Browse files Browse the repository at this point in the history
Signed-off-by: Bala.FA <bala@minio.io>
  • Loading branch information
balamurugana authored Sep 9, 2024
1 parent 196f4c2 commit c16fb69
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions sidecars/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,24 @@ function release() {

mkdir -p "${GOPATH}/src/github.com/kubernetes-csi"
cd "${GOPATH}/src/github.com/kubernetes-csi"
git clone "https://github.com/kubernetes-csi/${GITHUB_PROJECT_NAME}.git"
if [ -f "${GITHUB_PROJECT_NAME}" ]; then
echo "ERROR: directory ${PWD}/${GITHUB_PROJECT_NAME} already exists"
exit 1
fi

echo "* Cloning repository https://github.com/kubernetes-csi/${GITHUB_PROJECT_NAME}.git"
git clone --quiet "https://github.com/kubernetes-csi/${GITHUB_PROJECT_NAME}.git"
cd "${GITHUB_PROJECT_NAME}"
git checkout -b "tag-${tag}" "${tag}"
git checkout --quiet -b "tag-${tag}" "${tag}"
git tag "${curr_tag}" "${tag}"

generate_dockerfile
generate_goreleaser_yaml

export GORELEASER_CURRENT_TAG="${curr_tag}"
export GORELEASER_PREVIOUS_TAG="${prev_tag}"
if [ -z "${DRY_RUN}" ]; then
if [ "${DRY_RUN}" == "1" ]; then
echo "* Doing local-only release for build test"
goreleaser release --snapshot --clean
else
goreleaser release
Expand Down

0 comments on commit c16fb69

Please sign in to comment.