Adding the possibility to pull changes from git before updating images
This commit is contained in:
6
update_repos.sh
Executable file
6
update_repos.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
REPO_PATH=$1
|
||||
|
||||
git -C $REPO_PATH fetch --tags
|
||||
LAST_HASH=`git -C $REPO_PATH rev-list --tags --max-count=1`
|
||||
LAST_TAG=`git -C $REPO_PATH describe --tags $LAST_HASH`
|
||||
git -C $REPO_PATH checkout $LAST_TAG
|
||||
Reference in New Issue
Block a user