Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
containers
eic_container
Merge requests
!18
Re-factor repository workflow
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Re-factor repository workflow
13-re-factor-repository-workflow
into
master
Overview
0
Commits
34
Pipelines
0
Changes
19
Merged
Sylvester Joosten
requested to merge
13-re-factor-repository-workflow
into
master
4 years ago
Overview
0
Commits
34
Pipelines
0
Changes
19
Expand
Addresses
#13 (closed)
Edited
4 years ago
by
Whitney Armstrong
0
0
Merge request reports
Compare
master
version 29
08b8fe52
4 years ago
version 28
f92e5afa
4 years ago
version 27
32304f53
4 years ago
version 26
78a7761a
4 years ago
version 25
2d3ffe4d
4 years ago
version 24
e1686dd0
4 years ago
version 23
ac0aeb57
4 years ago
version 22
acd344e2
4 years ago
version 21
946c57a3
4 years ago
version 20
ba7eea1c
4 years ago
version 19
2c0301e9
4 years ago
version 18
e12c71e8
4 years ago
version 17
6bc4ffc7
4 years ago
version 16
171b4945
4 years ago
version 15
1943d6c6
4 years ago
version 14
1fc041b1
4 years ago
version 13
92711732
4 years ago
version 12
74e2a311
4 years ago
version 11
bbae8b0d
4 years ago
version 10
c8a30b47
4 years ago
version 9
e0452f1d
4 years ago
version 8
3ba7a16c
4 years ago
version 7
85ae952d
4 years ago
version 6
4005e2f2
4 years ago
version 5
d6d6af5f
4 years ago
version 4
635306a6
4 years ago
version 3
1c612a5d
4 years ago
version 2
c052bb08
4 years ago
version 1
61ad8351
4 years ago
master (base)
and
latest version
latest version
fd8f2316
34 commits,
4 years ago
version 29
08b8fe52
33 commits,
4 years ago
version 28
f92e5afa
31 commits,
4 years ago
version 27
32304f53
30 commits,
4 years ago
version 26
78a7761a
29 commits,
4 years ago
version 25
2d3ffe4d
28 commits,
4 years ago
version 24
e1686dd0
27 commits,
4 years ago
version 23
ac0aeb57
26 commits,
4 years ago
version 22
acd344e2
25 commits,
4 years ago
version 21
946c57a3
23 commits,
4 years ago
version 20
ba7eea1c
22 commits,
4 years ago
version 19
2c0301e9
21 commits,
4 years ago
version 18
e12c71e8
20 commits,
4 years ago
version 17
6bc4ffc7
19 commits,
4 years ago
version 16
171b4945
18 commits,
4 years ago
version 15
1943d6c6
17 commits,
4 years ago
version 14
1fc041b1
16 commits,
4 years ago
version 13
92711732
15 commits,
4 years ago
version 12
74e2a311
14 commits,
4 years ago
version 11
bbae8b0d
13 commits,
4 years ago
version 10
c8a30b47
12 commits,
4 years ago
version 9
e0452f1d
11 commits,
4 years ago
version 8
3ba7a16c
10 commits,
4 years ago
version 7
85ae952d
9 commits,
4 years ago
version 6
4005e2f2
8 commits,
4 years ago
version 5
d6d6af5f
7 commits,
4 years ago
version 4
635306a6
6 commits,
4 years ago
version 3
1c612a5d
5 commits,
4 years ago
version 2
c052bb08
4 commits,
4 years ago
version 1
61ad8351
3 commits,
4 years ago
19 files
+
276
−
671
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
19
Search (e.g. *.vue) (Ctrl+P)
.gitlab-ci.yml
+
24
−
126
Options
image
:
eicweb.phy.anl.gov:4567/containers/image_recipes/ubuntu_dind:latest
stages
:
-
builder
-
config
-
slim
-
singularity
-
trigger
## We use minimal file artifacts to transport variables between job
## stages, such as the branch we are working on and the need for
## caching.
## By evaluating these files in the before_script, we can set
## relevant environment variables before our pipelines run
## make note if we cannot use caching for one of the stages
## by touching files in .ci_env
default
:
tags
:
-
silicon
artifacts
:
paths
:
-
.ci-env
before_script
:
-
mkdir -p .ci-env
-
|
if [ -f .ci-env/release ]; then
export BRANCH='release'
elif [ -f .ci-env/develop ]; then
export BRANCH='develop'
else export BRANCH='UNKNOWN'
fi
-
|
if [ -f .ci-env/builder-nc ]; then
export BUILDER_TARGET="${BRANCH}"
else
export BUILDER_TARGET="${BRANCH}-cached"
fi
-
|
if [ -f .ci-env/release-nc ]; then
export RELEASE_TARGET="${BRANCH}"
else
export RELEASE_TARGET="${BRANCH}-cached"
fi
tags
:
-
silicon
## Stable or unstable branch?
init:stable
:
stage
:
.pre
rules
:
-
if
:
'
$CI_COMMIT_TAG
||
$CI_COMMIT_BRANCH
==
"master"'
when
:
always
script
:
-
touch .ci-env/release
init:unstable
:
stage
:
.pre
rules
:
-
if
:
'
$CI_COMMIT_TAG
==
null
&&
$CI_COMMIT_BRANCH
!=
"master"'
when
:
always
script
:
-
touch .ci-env/develop
init:builder-nc
:
detect_changes:builder
:
stage
:
.pre
rules
:
-
changes
:
-
gitlab-ci/docker/*
-
containers/builder/Dockerfile
-
containers/builder/spack.yaml
-
spack/packages/**/*
script
:
-
mkdir -p .ci-env
-
touch .ci-env/builder-nc
init
:release
-nc
:
detect_changes
:release
:
stage
:
.pre
rules
:
-
changes
:
-
gitlab-ci/docker/*
-
gitlab-ci/singularity/*
-
containers/release/Dockerfile.in
-
containers/release/configure_release.sh
script
:
-
mkdir -p .ci-env
-
touch .ci-env/release-nc
builder
:
stage
:
builder
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"'
when
:
on_success
-
if
:
'
$CI_COMMIT_BRANCH
==
"develop"'
when
:
on_success
-
if
:
'
$CI_COMMIT_TAG'
when
:
on_success
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_MERGE_REQUEST_SOURCE_BRANCH
!=
"develop"'
when
:
on_success
script
:
-
cp -r spack containers/builder/np-spack
-
cd containers/builder
-
head Dockerfile
-
make login
-
echo "Creating builder image for ${BUILDER_TARGET}"
-
make ${BUILDER_TARGET}
.config
:
## Init our job for our desired branches/tags/events
init
:
stage
:
config
script
:
-
bash containers/release/configure_release.sh ${BRANCH}
-
./gitlab-ci/configure_pipeline.sh gitlab-ci/build_and_deploy.yml.in
artifacts
:
paths
:
-
config
config:stable
:
extends
:
.config
image
:
eicweb.phy.anl.gov:4567/containers/eic_container/eic_builder:latest
only
:
-
tags
-
master
config:unstable
:
extends
:
.config
image
:
eicweb.phy.anl.gov:4567/containers/eic_container/eic_builder:unstable
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_MERGE_REQUEST_SOURCE_BRANCH
!=
"develop"'
when
:
manual
-
if
:
'
$CI_COMMIT_BRANCH
==
"develop"'
when
:
on_success
release
:
stage
:
slim
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"'
when
:
on_success
-
if
:
'
$CI_COMMIT_BRANCH
==
"develop"'
when
:
on_success
-
if
:
'
$CI_COMMIT_TAG'
when
:
on_success
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_MERGE_REQUEST_SOURCE_BRANCH
!=
"develop"'
when
:
manual
script
:
-
cp config/Dockerfile containers/release/Dockerfile
-
cp config/eic-env.sh containers/release/eic-env.sh
-
cd containers/release
-
make login
-
make ${RELEASE_TARGET}
-
build_and_deploy.yml
release:singularity
:
stage
:
singularity
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"'
when
:
manual
-
if
:
'
$CI_COMMIT_BRANCH
==
"develop"'
when
:
manual
-
if
:
'
$CI_COMMIT_TAG'
when
:
on_success
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_MERGE_REQUEST_SOURCE_BRANCH
!=
"develop"'
when
:
manual
script
:
-
cp config/eic.def eic.def
-
/bin/bash .gitlabci/setup.sh
-
/bin/bash .gitlabci/build.sh eic.def
-
mkdir -p build
-
cp eic.sif build/.
-
cp eic.def build/.
artifacts
:
expire_in
:
90 days
paths
:
-
build/eic.sif
-
build/eic.def
## Dispatch if we ran the previous stage
run:default
:
stage
:
trigger
trigger
:
include
:
-
artifact
:
build_and_deploy.yml
job
:
init
strategy
:
depend
Loading