Skip to content
Snippets Groups Projects
Commit e0da2a3b authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Wrong folder for the config file

parent 571f445c
No related branches found
No related tags found
No related merge requests found
Pipeline #179113 failed
......@@ -54,6 +54,7 @@ spack:setup:
cd /spack/spack
git fetch
git checkout $SPACK_VERSION
cd -
fi
- /spack/spack/bin/spack -vv -d gpg trust $GPG_PRIVATE_KEY
......@@ -64,12 +65,15 @@ spack:setup:
EXTERNAL_REPOS=$(jq -r '.spack.repos | .[]' config.json)
for repo in ${EXTERNAL_REPOS}
do
repo_branch=$(jq -r ".spack.repos.${repo}.branch" config.json)
if [ ! -d /stack/extra_repos/${repo} ]; then
git clone -b $(jq -r ".spack.repos.${repos}.branch" config.json) $(jq -r ".spack.repos.${repos}.url" config.json) /stack/extra_repos/$repo
url_branch=$(jq -r ".spack.repos.${repo}.url" config.json)
git clone -b ${repo_branch} ${url_branch} /stack/extra_repos/$repo
else
cd /stack/extra_repos/$repo
git fetch
git checkout $(jq -r ".spack.repos.${repos}.branch" config.json)
git checkout ${repo_branch} config.json)
cd -
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment