Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Update CI pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Shreyas Rao <[email protected]>
  • Loading branch information
shreyas-s-rao committed Sep 19, 2020
1 parent 3df8155 commit dd94477
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .ci/update_version
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ set -e
# For the build step concourse will set the following environment variables:
# SOURCE_PATH - path to component repository root directory.

echo $SOURCE_PATH
pwd
ls -al

if [[ -z "${SOURCE_PATH}" ]]; then
export SOURCE_PATH="$(readlink -f "$(dirname ${0})/..")"
else
Expand All @@ -27,7 +23,7 @@ DOCKERFILE_TEMPLATE="${SOURCE_PATH}/Dockerfile.template"

VERSION=`/cc/utils/cli.py githubutil greatest_release_version --github-repository-url https://github.com/etcd-io/etcd --anonymous`
export VERSION="v$VERSION"
echo "NEW VERSION: $VERSION"
echo "FETCHED ETCD VERSION: $VERSION"

cat << EOF > ${VERSION_FILE}
$VERSION
Expand All @@ -46,5 +42,7 @@ git --no-pager diff

echo
echo "Publishing version change"
set +e
git commit -am "Updated etcd image version to $VERSION"
echo $(git log -1)
set -e
git --no-pager log -1

0 comments on commit dd94477

Please sign in to comment.