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:-}}" deployment="${1:-${deployment:-}}"
action="${action:-deploy}" action="${action:-deploy}"
persistence="${persistence:-y}" persistence="${persistence:-y}"
idhub_branch="${idhub_branch:-main}"
# detach on production deployment # detach on production deployment
if [ "${deployment}" = 'prod' ]; then if [ "${deployment}" = 'prod' ]; then
detach='-d' detach='-d'
fi 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 # ensure uses main branch branch and that it is up to date
( (
cd ./IdHub cd ./IdHub
if [ -d .git ]; then 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 git pull
fi fi
) )

View File

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

View File

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