Skip to content
Snippets Groups Projects
Commit 3f23adeb authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

fix: geometry version shouldn't require to include suffix

parent 9f1dc278
No related branches found
No related merge requests found
...@@ -122,9 +122,10 @@ version: ...@@ -122,9 +122,10 @@ version:
elif [[ "$CI_COMMIT_TAG" =~ ^v[0-9.]+\.[0-9]+\.[0-9]+ ]]; then elif [[ "$CI_COMMIT_TAG" =~ ^v[0-9.]+\.[0-9]+\.[0-9]+ ]]; then
VERSION="${CI_COMMIT_TAG:1}" VERSION="${CI_COMMIT_TAG:1}"
EXPORT_TAG="${VERSION}" EXPORT_TAG="${VERSION}"
GEOM_VERSION="$(echo "$VERSION" | sed -e 's/-.\+$//')" # cut out suffixes like -stable
for ENV_FILE in spack-environment/xl/spack.yaml spack-environment/cuda/spack.yaml; do for ENV_FILE in spack-environment/xl/spack.yaml spack-environment/cuda/spack.yaml; do
grep -- "- epic@${VERSION}" "${ENV_FILE}" >/dev/null \ grep -- "- epic@${GEOM_VERSION}" "${ENV_FILE}" >/dev/null \
|| ( echo "Unable to locate epic release package for ${VERSION} in ${ENV_FILE}"; exit 1; ) || ( echo "Unable to locate epic release package for ${GEOM_VERSION} in ${ENV_FILE}"; exit 1; )
done done
elif [[ "$CI_COMMIT_BRANCH" =~ ^v[0-9.]+\.[0-9]+-\(alpha\|beta\|stable\) ]]; then elif [[ "$CI_COMMIT_BRANCH" =~ ^v[0-9.]+\.[0-9]+-\(alpha\|beta\|stable\) ]]; then
VERSION="${CI_COMMIT_BRANCH:1}" VERSION="${CI_COMMIT_BRANCH:1}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment