This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() { | ||
|
@@ -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 | ||
} | ||
|