Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
More build script clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbrouse committed Jul 3, 2017
1 parent 89c89d0 commit de717f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ setup_git() {
git config --global push.default matching
git config --global user.email "[email protected]"
git config --global user.name "Jon Brouse"
git remote rm origin
git remote add origin https://$GH_TOKEN@github.com/jonbrouse/docker-ice.git > /dev/null 2>&1
}

update_ice_version() {
timestamp Updating Dockerfile and commiting...
sed -i "/ENV\ ICE_VERSION/c\ENV\ ICE_VERSION\ $NEW_VERSION" ice/Dockerfile
git commit ice/Dockerfile -m "Created new release: $NEW_VERSION"
git commit ice/Dockerfile -m "Updated Ice version to $NEW_VERSION"
}

update_master() {
Expand All @@ -27,8 +29,6 @@ update_master() {
create_new_tag() {
timestamp Creating release tag...
git tag -m "New version of ICE" "$NEW_VERSION.0"
git remote rm origin
git remote add origin https://$GH_TOKEN@github.com/jonbrouse/docker-ice.git > /dev/null 2>&1
git push --quiet --set-upstream origin
git push --tags
}
Expand Down

0 comments on commit de717f7

Please sign in to comment.