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

modernized gitlabci

parent 7e32cbd0
Branches
Tags
1 merge request!10New v2.2.0 release version
...@@ -6,7 +6,7 @@ stages: ...@@ -6,7 +6,7 @@ stages:
- main - main
- singularity - singularity
builder_stable: builder:stable:
stage: builder stage: builder
tags: tags:
- silicon - silicon
...@@ -19,7 +19,7 @@ builder_stable: ...@@ -19,7 +19,7 @@ builder_stable:
- head Dockerfile - head Dockerfile
- make login - make login
- make release-cached - make release-cached
builder_unstable: builder:unstable:
stage: builder stage: builder
tags: tags:
- silicon - silicon
...@@ -35,7 +35,7 @@ builder_unstable: ...@@ -35,7 +35,7 @@ builder_unstable:
## I wish there were a simple way to transfer the "latest/unstable" strings ## I wish there were a simple way to transfer the "latest/unstable" strings
## between jobs... ## between jobs...
config_stable: config:stable:
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 stage: config
tags: tags:
...@@ -44,6 +44,7 @@ config_stable: ...@@ -44,6 +44,7 @@ config_stable:
- tags - tags
- master - master
- staging - staging
needs: ["builder:stable"]
script: script:
- bash containers/release/configure_release.sh - bash containers/release/configure_release.sh
artifacts: artifacts:
...@@ -51,7 +52,7 @@ config_stable: ...@@ -51,7 +52,7 @@ config_stable:
- config/spack-env.sh - config/spack-env.sh
- config/eic-env.sh - config/eic-env.sh
- config/Dockerfile - config/Dockerfile
config_unstable: config:unstable:
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 stage: config
tags: tags:
...@@ -60,6 +61,7 @@ config_unstable: ...@@ -60,6 +61,7 @@ config_unstable:
- tags - tags
- master - master
- staging - staging
needs: ["builder:unstable"]
script: script:
- bash containers/release/configure_release.sh - bash containers/release/configure_release.sh
artifacts: artifacts:
...@@ -68,7 +70,7 @@ config_unstable: ...@@ -68,7 +70,7 @@ config_unstable:
- config/eic-env.sh - config/eic-env.sh
- config/Dockerfile - config/Dockerfile
release_stable: release:stable:
stage: main stage: main
tags: tags:
- silicon - silicon
...@@ -76,13 +78,14 @@ release_stable: ...@@ -76,13 +78,14 @@ release_stable:
- tags - tags
- master - master
- staging - staging
needs: ["config:stable"]
script: script:
- cp config/Dockerfile containers/release/Dockerfile - cp config/Dockerfile containers/release/Dockerfile
- cp config/eic-env.sh containers/release/eic-env.sh - cp config/eic-env.sh containers/release/eic-env.sh
- cd containers/release - cd containers/release
- make login - make login
- make release-cached - make release-cached
release_unstable: release:unstable:
stage: main stage: main
tags: tags:
- silicon - silicon
...@@ -90,6 +93,7 @@ release_unstable: ...@@ -90,6 +93,7 @@ release_unstable:
- tags - tags
- master - master
- staging - staging
needs: ["config:unstable"]
script: script:
- cp config/Dockerfile containers/release/Dockerfile - cp config/Dockerfile containers/release/Dockerfile
- cp config/eic-env.sh containers/release/eic-env.sh - cp config/eic-env.sh containers/release/eic-env.sh
...@@ -97,13 +101,14 @@ release_unstable: ...@@ -97,13 +101,14 @@ release_unstable:
- make login - make login
- make develop-cached - make develop-cached
builder_singularity: builder:singularity:
stage: singularity stage: singularity
tags: tags:
- singularity - singularity
only: only:
- staging - staging
- tags - tags
needs: ["builder:stable"]
when: manual when: manual
script: script:
- cp containers/builder/eic_builder.def . - cp containers/builder/eic_builder.def .
...@@ -117,13 +122,14 @@ builder_singularity: ...@@ -117,13 +122,14 @@ builder_singularity:
- build/eic_builder.sif - build/eic_builder.sif
- build/eic_builder.def - build/eic_builder.def
release_singularity: release:singularity:
stage: singularity stage: singularity
tags: tags:
- singularity - singularity
only: only:
- staging - staging
- tags - tags
needs: ["release:stable"]
script: script:
- cp containers/release/eic.def . - cp containers/release/eic.def .
- /bin/bash .gitlabci/setup.sh - /bin/bash .gitlabci/setup.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment