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:
pedro 2024-02-29 12:30:21 +01:00
parent dc61c0d753
commit c7bf0ca0fb
3 changed files with 13 additions and 1 deletions

View File

@ -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
)

View File

@ -17,6 +17,7 @@ main() {
target='instance-autotest'
persistence='n'
idhubs='idhub'
idhub_branch='release'
common_start

View File

@ -17,6 +17,7 @@ main() {
target='instance-nightly'
persistence='n'
idhubs='idhub'
idhub_branch='release'
common_start