Skip to content
Snippets Groups Projects
Commit ae71d68a authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

streamlined config step

parent c8a441cd
No related branches found
Tags v0.13.3
1 merge request!16New feature version
...@@ -92,24 +92,27 @@ builder: ...@@ -92,24 +92,27 @@ builder:
- echo "Creating builder image for ${BUILDER_TARGET}" - echo "Creating builder image for ${BUILDER_TARGET}"
- make ${BUILDER_TARGET} - make ${BUILDER_TARGET}
.config:
stage: config
script:
- bash containers/release/configure_release.sh ${BRANCH}
artifacts:
paths:
- config
config:stable: config:stable:
extends: .config
image: eicweb.phy.anl.gov:4567/containers/eic_container/eic_builder:latest image: eicweb.phy.anl.gov:4567/containers/eic_container/eic_builder:latest
stage: config
only: only:
- tags - tags
- master - master
script:
- bash containers/release/configure_release.sh latest
config:unstable: config:unstable:
extends: .config
image: eicweb.phy.anl.gov:4567/containers/eic_container/eic_builder:unstable image: eicweb.phy.anl.gov:4567/containers/eic_container/eic_builder:unstable
stage: config
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH != "develop"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH != "develop"'
when: manual when: manual
- if: '$CI_COMMIT_BRANCH == "develop"' - if: '$CI_COMMIT_BRANCH == "develop"'
when: on_success when: on_success
script:
- bash containers/release/configure_release.sh unstable
release: release:
stage: slim stage: slim
......
...@@ -9,7 +9,12 @@ mkdir -p config ...@@ -9,7 +9,12 @@ mkdir -p config
cp /etc/profile.d/z10_spack_environment.sh config/spack-env.sh cp /etc/profile.d/z10_spack_environment.sh config/spack-env.sh
export TAG=$1 export BRANCH=$1
if [ ${BRANCH} == "release" ];
export TAG="latest"
else
export TAG="unstable"
fi
## Spack sets the man-path, which stops bash from using the default man-path ## Spack sets the man-path, which stops bash from using the default man-path
## We can fix this by appending a trailing colon to MANPATH ## We can fix this by appending a trailing colon to MANPATH
......
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