update on pulling repositories
- add git pull also ssikit_trustchain - allow customized branch pulling (idhub main on pilots vs release on test instances), by default main - now autotest and nightly instances are going to point to release
This commit is contained in:
parent
dc61c0d753
commit
c7bf0ca0fb
|
@ -11,17 +11,27 @@ common_start() {
|
|||
deployment="${1:-${deployment:-}}"
|
||||
action="${action:-deploy}"
|
||||
persistence="${persistence:-y}"
|
||||
idhub_branch="${idhub_branch:-main}"
|
||||
|
||||
# detach on production deployment
|
||||
if [ "${deployment}" = 'prod' ]; then
|
||||
detach='-d'
|
||||
fi
|
||||
|
||||
# TODO at some point it would be better to use pull-repos.sh
|
||||
# ensure uses main branch branch and that it is up to date
|
||||
(
|
||||
cd ./IdHub
|
||||
if [ -d .git ]; then
|
||||
git checkout main
|
||||
git checkout ${idhub_branch}
|
||||
git pull
|
||||
fi
|
||||
)
|
||||
|
||||
(
|
||||
cd ./ssikit_trustchain
|
||||
if [ -d .git ]; then
|
||||
git checkout master
|
||||
git pull
|
||||
fi
|
||||
)
|
||||
|
|
|
@ -17,6 +17,7 @@ main() {
|
|||
target='instance-autotest'
|
||||
persistence='n'
|
||||
idhubs='idhub'
|
||||
idhub_branch='release'
|
||||
|
||||
common_start
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ main() {
|
|||
target='instance-nightly'
|
||||
persistence='n'
|
||||
idhubs='idhub'
|
||||
idhub_branch='release'
|
||||
|
||||
common_start
|
||||
|
||||
|
|
Reference in a new issue