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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
containers
eic_container
Commits
726def1e
Commit
726def1e
authored
May 4, 2023
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: jug_dev matrix for default and nightly build
parent
6b73e330
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+38
-10
38 additions, 10 deletions
.gitlab-ci.yml
with
38 additions
and
10 deletions
.gitlab-ci.yml
+
38
−
10
View file @
726def1e
...
@@ -229,17 +229,26 @@ base:
...
@@ -229,17 +229,26 @@ base:
--build-arg BUILD_IMAGE=${BUILD_IMAGE}
--build-arg BUILD_IMAGE=${BUILD_IMAGE}
containers/debian
containers/debian
jug_dev:
default
:
jug_dev
:
parallel
:
parallel
:
matrix
:
matrix
:
-
BASE_IMAGE
:
debian_stable_base
-
BASE_IMAGE
:
debian_stable_base
BUILD_IMAGE
:
jug_dev
BUILD_IMAGE
:
jug_dev
BUILD_TYPE
:
-
default
-
nightly
PLATFORM
:
linux/amd64,linux/arm64/v8
PLATFORM
:
linux/amd64,linux/arm64/v8
# - BASE_IMAGE: oneapi_base
# - BASE_IMAGE: oneapi_base
# BUILD_IMAGE: jug_dev_oneapi
# BUILD_IMAGE: jug_dev_oneapi
# BUILD_TYPE:
# - default
# - nightly
# PLATFORM: linux/amd64
# PLATFORM: linux/amd64
# - BASE_IMAGE: cuda_base_new
# - BASE_IMAGE: cuda_base_new
# BUILD_IMAGE: jug_dev_cuda
# BUILD_IMAGE: jug_dev_cuda
# BUILD_TYPE:
# - default
# - nightly
# PLATFORM: linux/amd64
# PLATFORM: linux/amd64
extends
:
.build
extends
:
.build
stage
:
jug
stage
:
jug
...
@@ -247,6 +256,8 @@ jug_dev:default:
...
@@ -247,6 +256,8 @@ jug_dev:default:
-
version
-
version
-
base
-
base
script
:
script
:
-
if [ "${BUILD_TYPE}" == "nightly" ] ; then IF_BUILD_NIGHTLY=1 ; fi
-
if [ "${BUILD_TYPE}" == "default" ] ; then IF_BUILD_DEFAULT=1 ; fi
## Setup mirrors.yaml with rw mirror secrets
## Setup mirrors.yaml with rw mirror secrets
-
cat mirrors.yaml.in | envsubst > mirrors.yaml
-
cat mirrors.yaml.in | envsubst > mirrors.yaml
## Build targets
## Build targets
...
@@ -254,21 +265,38 @@ jug_dev:default:
...
@@ -254,21 +265,38 @@ jug_dev:default:
source eic-spack.sh ;
source eic-spack.sh ;
docker buildx build --push ${BUILD_OPTIONS}
docker buildx build --push ${BUILD_OPTIONS}
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
${IF_BUILD_DEFAULT:+
${EXPORT_TAG:+
${EXPORT_TAG:+
${CI_PUSH:+--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${EXPORT_TAG}}
${CI_PUSH:+--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${EXPORT_TAG}}
${DH_PUSH:+--tag ${DH_REGISTRY}/${DH_REGISTRY_USER}/${BUILD_IMAGE}:${EXPORT_TAG}}
${DH_PUSH:+--tag ${DH_REGISTRY}/${DH_REGISTRY_USER}/${BUILD_IMAGE}:${EXPORT_TAG}}
${GH_PUSH:+--tag ${GH_REGISTRY}/${GH_REGISTRY_USER}/${BUILD_IMAGE}:${EXPORT_TAG}}
${GH_PUSH:+--tag ${GH_REGISTRY}/${GH_REGISTRY_USER}/${BUILD_IMAGE}:${EXPORT_TAG}}
}
}
}
${IF_BUILD_NIGHTLY:+
${NIGHLTY:+
${CI_PUSH:+--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${NIGHTLY_TAG}}
${DH_PUSH:+--tag ${DH_REGISTRY}/${DH_REGISTRY_USER}/${BUILD_IMAGE}:${NIGHTLY_TAG}}
${GH_PUSH:+--tag ${GH_REGISTRY}/${GH_REGISTRY_USER}/${BUILD_IMAGE}:${NIGHTLY_TAG}}
${PUSH_NIGHTLY_WITH_DATE:+
${DH_PUSH:+--tag ${DH_REGISTRY}/${DH_REGISTRY_USER}/${BUILD_IMAGE}:${NIGHTLY_TAG}-$(date +%Y-%m-%d)}
${GH_PUSH:+--tag ${GH_REGISTRY}/${GH_REGISTRY_USER}/${BUILD_IMAGE}:${NIGHTLY_TAG}-$(date +%Y-%m-%d)}
}
}
}
--file containers/jug/dev.Dockerfile
--file containers/jug/dev.Dockerfile
--platform ${PLATFORM}
--platform ${PLATFORM}
--build-arg DOCKER_REGISTRY=${CI_REGISTRY}/${CI_PROJECT_PATH}/
--build-arg DOCKER_REGISTRY=${CI_REGISTRY}/${CI_PROJECT_PATH}/
--build-arg BASE_IMAGE=${BASE_IMAGE}
--build-arg BASE_IMAGE=${BASE_IMAGE}
--build-arg INTERNAL_TAG=${INTERNAL_TAG}
--build-arg INTERNAL_TAG=${INTERNAL_TAG}
--build-arg SPACK_ORGREPO=${SPACK_ORGREPO}
--build-arg SPACK_ORGREPO=${SPACK_ORGREPO}
${IF_BUILD_DEFAULT:+
--build-arg SPACK_VERSION=${SPACK_VERSION}
--build-arg SPACK_VERSION=${SPACK_VERSION}
}
--build-arg SPACK_CHERRYPICKS="${SPACK_CHERRYPICKS}"
--build-arg SPACK_CHERRYPICKS="${SPACK_CHERRYPICKS}"
--build-arg EICSPACK_ORGREPO=${EICSPACK_ORGREPO}
--build-arg EICSPACK_ORGREPO=${EICSPACK_ORGREPO}
${IF_BUILD_DEFAULT:+
--build-arg EICSPACK_VERSION=${EICSPACK_VERSION}
--build-arg EICSPACK_VERSION=${EICSPACK_VERSION}
}
--build-arg EICSPACK_CHERRYPICKS="${EICSPACK_CHERRYPICKS}"
--build-arg EICSPACK_CHERRYPICKS="${EICSPACK_CHERRYPICKS}"
--build-arg S3_ACCESS_KEY=${S3_ACCESS_KEY}
--build-arg S3_ACCESS_KEY=${S3_ACCESS_KEY}
--build-arg S3_SECRET_KEY=${S3_SECRET_KEY}
--build-arg S3_SECRET_KEY=${S3_SECRET_KEY}
...
@@ -291,7 +319,7 @@ jug_xl:default:
...
@@ -291,7 +319,7 @@ jug_xl:default:
stage
:
jug
stage
:
jug
needs
:
needs
:
-
version
-
version
-
jug_dev
:default
-
jug_dev
script
:
script
:
-
docker buildx build --push ${BUILD_OPTIONS}
-
docker buildx build --push ${BUILD_OPTIONS}
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
...
@@ -331,7 +359,7 @@ jug_xl:nightly:
...
@@ -331,7 +359,7 @@ jug_xl:nightly:
-
when
:
never
-
when
:
never
needs
:
needs
:
-
version
-
version
-
jug_dev
:default
-
jug_dev
script
:
script
:
-
|
-
|
PUSH_NIGHTLY_WITH_DATE=""
PUSH_NIGHTLY_WITH_DATE=""
...
@@ -412,7 +440,7 @@ jug_dev:singularity:default:
...
@@ -412,7 +440,7 @@ jug_dev:singularity:default:
extends
:
.singularity
extends
:
.singularity
needs
:
needs
:
-
version
-
version
-
jug_dev
:default
-
jug_dev
variables
:
variables
:
BUILD_IMAGE
:
"
jug_dev"
BUILD_IMAGE
:
"
jug_dev"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment