Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cobalt-installation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
COBALT
cobalt-installation
Commits
9f7d051e
Commit
9f7d051e
authored
2 months ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
Build cobalt in CI/CD pipeline
parent
166e1897
No related branches found
No related tags found
1 merge request
!5
Combine new spack files + CI/CD branches
Pipeline
#118481
failed
2 months ago
Stage: prepare
Stage: test
Pipeline: cobalt-installation
#118482
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+6
-11
6 additions, 11 deletions
.gitlab-ci.yml
.prepare.gitlab-ci.yml
+0
-29
0 additions, 29 deletions
.prepare.gitlab-ci.yml
environment.yaml
+1
-2
1 addition, 2 deletions
environment.yaml
old-environment.yaml
+0
-0
0 additions, 0 deletions
old-environment.yaml
with
7 additions
and
42 deletions
.gitlab-ci.yml
+
6
−
11
View file @
9f7d051e
...
@@ -21,7 +21,7 @@ stages:
...
@@ -21,7 +21,7 @@ stages:
# Caching of dependencies to speed up builds
# Caching of dependencies to speed up builds
variables
:
variables
:
SECURE_LOG_LEVEL
:
debug
SECURE_LOG_LEVEL
:
debug
SOURCE_IMAGE
:
debian:
bookworm
SOURCE_IMAGE
:
debian:
12.10
include
:
include
:
-
template
:
Security/SAST.gitlab-ci.yml
-
template
:
Security/SAST.gitlab-ci.yml
...
@@ -77,12 +77,17 @@ build_spack:
...
@@ -77,12 +77,17 @@ build_spack:
build_cobalt
:
build_cobalt
:
stage
:
test
stage
:
test
image
:
docker
image
:
docker
needs
:
-
build_spack
dependencies
:
-
build_spack
tags
:
tags
:
-
dind
-
dind
rules
:
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
changes
:
changes
:
-
docker/*
-
docker/*
-
environment.yaml
-
modules.yaml
-
modules.yaml
-
if
:
($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH) || ($CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true")
-
if
:
($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH) || ($CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true")
script
:
script
:
...
@@ -101,16 +106,6 @@ build_cobalt:
...
@@ -101,16 +106,6 @@ build_cobalt:
docker push $CI_REGISTRY_IMAGE/cobalt:latest
docker push $CI_REGISTRY_IMAGE/cobalt:latest
fi
fi
# script:
# - source ${SPACK_DIR}/share/spack/setup-env.sh
# - spack env create lofar
# - spack env activate lofar
# - cp environment.yaml $SPACK_ENV/spack.yaml
# - spack install
# - cp modules.yaml ~/.spack/modules.yaml
# - spack module tcl refresh -y
# - source /etc/profile.d/modules.sh
release_job
:
release_job
:
stage
:
publish
stage
:
publish
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
...
...
This diff is collapsed.
Click to expand it.
.prepare.gitlab-ci.yml
+
0
−
29
View file @
9f7d051e
...
@@ -8,13 +8,6 @@ workflow:
...
@@ -8,13 +8,6 @@ workflow:
build_ci_runner_image
:
build_ci_runner_image
:
stage
:
build
stage
:
build
image
:
docker
image
:
docker
# rules:
# - if: $CI_PIPELINE_SOURCE == "merge_request_event"
# changes:
# - docker/*
# - environment.yaml
# - modules.yaml
# - if: ($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH) || $CI_COMMIT_TAG
tags
:
tags
:
-
dind
-
dind
script
:
script
:
...
@@ -33,25 +26,3 @@ build_ci_runner_image:
...
@@ -33,25 +26,3 @@ build_ci_runner_image:
docker image tag $CI_REGISTRY_IMAGE/ci-build-runner:$CI_COMMIT_REF_SLUG $CI_REGISTRY_IMAGE/ci-build-runner:latest
docker image tag $CI_REGISTRY_IMAGE/ci-build-runner:$CI_COMMIT_REF_SLUG $CI_REGISTRY_IMAGE/ci-build-runner:latest
docker push $CI_REGISTRY_IMAGE/ci-build-runner:latest
docker push $CI_REGISTRY_IMAGE/ci-build-runner:latest
fi
fi
## This job retags latest for the pipeline if there are no changes to files that influence images
#retag_ci_runner_image:
# stage: build
# image: docker
# rules:
# - if: $CI_PIPELINE_SOURCE == "merge_request_event"
# - if: $CI_PIPELINE_SOURCE == "merge_request_event"
# changes:
# - docker/*
# - environment.yaml
# - modules.yaml
# when: never
# - if: ($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH) || $CI_COMMIT_TAG
# when: never
# tags:
# - dind
# script:
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# - docker pull $CI_REGISTRY_IMAGE/ci-build-runner:latest
# - docker tag $CI_REGISTRY_IMAGE/ci-build-runner:latest $CI_REGISTRY_IMAGE/ci-build-runner:$CI_COMMIT_REF_SLUG
# - docker push $CI_REGISTRY_IMAGE/ci-build-runner:$CI_COMMIT_REF_SLUG # push the image
\ No newline at end of file
This diff is collapsed.
Click to expand it.
environment.yaml
+
1
−
2
View file @
9f7d051e
---
---
spack
:
spack
:
specs
:
specs
:
-
autogen
-
binutils@2.30
-
binutils@2.30
-
boost+date_time+regex+filesystem+system+python+numpy
-
boost+date_time+regex+filesystem+system+python+numpy
-
casacore@3.5.0
-
casacore@3.5.0
...
...
This diff is collapsed.
Click to expand it.
old-environment.yaml
deleted
100644 → 0
+
0
−
0
View file @
166e1897
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