Skip to content

Commit

Permalink
Make shipit idempotent
Browse files Browse the repository at this point in the history
[#127656389]

Signed-off-by: Petar Petrov <[email protected]>
  • Loading branch information
williammartin authored and pppepito86 committed Aug 4, 2016
1 parent a95c9c1 commit 45009e2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions ci/scripts/shipit
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ cd gr-release-develop/
git config --global user.email "ci@localhost"
git config --global user.name "CI Bot"

git merge --no-edit master

bosh -n finalize release --version "$VERSION" ${CANDIDATE_DIR}/garden-runc-*.tgz
RELEASE_YML=$PWD/releases/garden-runc/garden-run-${VERSION}.yml

if [ -e ${RELEASE_YML} ]; then
echo "release already created; making tarball..."
bosh -n create release --with-tarball ${RELEASE_YML}
else
echo "finalizing release"
bosh -n finalize release --version "$VERSION" ${CANDIDATE_DIR}/garden-runc-*.tgz
git add -A
git commit -m "release v${VERSION}"
fi

mv releases/garden-runc/*.tgz ../final-release/garden-runc-${VERSION}.tgz

git add -A
git commit -m "release v${VERSION}"

cp -r . ../release/master

0 comments on commit 45009e2

Please sign in to comment.