Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nomad-FAIR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
nomad-lab
nomad-FAIR
Commits
7c955e75
Commit
7c955e75
authored
11 months ago
by
Ahmed Ilyas
Browse files
Options
Downloads
Patches
Plain Diff
Remove deployments
parent
82b6827f
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#216153
passed
11 months ago
Stage: build
Stage: test
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+0
-154
0 additions, 154 deletions
.gitlab-ci.yml
with
0 additions
and
154 deletions
.gitlab-ci.yml
+
0
−
154
View file @
7c955e75
...
...
@@ -355,18 +355,6 @@ build python package:
-
dist/
-
archive.json
build final image
:
stage
:
test
needs
:
[
"
build
python
package"
,
"
update_scm_pretend_version"
]
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_SUBMODULE_DEPTH
:
1
GIT_SUBMODULE_UPDATE_FLAGS
:
--jobs
4
SETUPTOOLS_SCM_PRETEND_VERSION
:
"
${SETUPTOOLS_SCM_PRETEND_VERSION}"
TARGET
:
final
DESTINATION
:
"
${CI_REGISTRY_IMAGE}:${DOCKER_TAG}"
extends
:
.build_image
install tests
:
stage
:
test
parallel
:
...
...
@@ -387,148 +375,6 @@ install tests:
-
uv pip install git+https://github.com/nomad-coe/nomad-parser-example.git@0b0035d
-
python -m exampleparser tests/data/examples/example.out
.tag image
:
image
:
name
:
gcr.io/go-containerregistry/crane:debug
entrypoint
:
[
"
"
]
variables
:
GIT_STRATEGY
:
none
script
:
-
crane auth login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
echo ${TARGET_ENV}
-
crane cp ${CI_REGISTRY_IMAGE}:${DOCKER_TAG} ${CI_REGISTRY_IMAGE}:${TARGET_ENV}
.deploy image
:
&deploy_image
stage
:
deploy
image
:
gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-fair/ci-runner:latest
before_script
:
-
mkdir ~/.kube/
-
echo ${CI_K8S_CLOUD_CONFIG} | base64 -d > ~/.kube/config
script
:
-
echo ${TARGET_ENV}
-
helm dependency update ops/kubernetes/nomad
-
helm upgrade nomad-prod-${TARGET_ENV} ops/kubernetes/nomad
--install
--namespace nomad-prod-${TARGET_ENV}
--values ops/kubernetes/values.yaml
--values ops/kubernetes/nomad-prod-${TARGET_ENV}.yaml
--set nomad.image.tag=${TARGET_ENV}
--set roll=true
--timeout=15m
--wait
.test_deployment
:
&test_deployment
stage
:
deploy
image
:
name
:
${CI_REGISTRY_IMAGE}:${DOCKER_TAG}
entrypoint
:
[
"
"
]
script
:
-
CLIENT_URL="https://nomad-lab.eu/prod/v1/${TARGET_ENV}/api"
-
echo ${CLIENT_URL}
-
nomad client -n $CLIENT_URL -u test -w $CI_NOMAD_TEST_PASSWORD integrationtests --skip-publish --skip-doi
deploy test
:
stage
:
deploy
extends
:
-
.tag image
variables
:
TARGET_ENV
:
test
before_script
:
-
echo "TARGET_ENV=test" >> build.env
-
echo "name=test" >> build.env
-
echo "deployment_tier=production" >> build.env
-
echo "url=https://nomad-lab.eu/prod/v1/test" >> build.env
artifacts
:
reports
:
dotenv
:
build.env
rules
:
-
when
:
manual
allow_failure
:
true
deploy test image
:
stage
:
deploy
needs
:
[
"
deploy
test"
]
<<
:
*deploy_image
test test deployment
:
stage
:
deploy
needs
:
[
"
deploy
test"
,
"
deploy
test
image"
]
<<
:
*test_deployment
deploy staging
:
stage
:
deploy
extends
:
-
.tag image
variables
:
TARGET_ENV
:
staging
before_script
:
-
echo "TARGET_ENV=staging" >> build.env
-
echo "name=staging" >> build.env
-
echo "deployment_tier=production" >> build.env
-
echo "url=https://nomad-lab.eu/prod/v1/staging" >> build.env
artifacts
:
reports
:
dotenv
:
build.env
rules
:
-
when
:
manual
allow_failure
:
true
deploy staging image
:
stage
:
deploy
needs
:
[
"
deploy
staging"
]
<<
:
*deploy_image
test staging deployment
:
stage
:
deploy
needs
:
[
"
deploy
staging"
,
"
deploy
staging
image"
]
<<
:
*test_deployment
deploy develop
:
stage
:
deploy
extends
:
-
.tag image
variables
:
TARGET_ENV
:
develop
before_script
:
-
echo "TARGET_ENV=develop" >> build.env
-
echo "name=develop" >> build.env
-
echo "deployment_tier=production" >> build.env
-
echo "url=https://nomad-lab.eu/prod/v1/develop" >> build.env
artifacts
:
reports
:
dotenv
:
build.env
rules
:
-
when
:
manual
allow_failure
:
true
deploy develop image
:
stage
:
deploy
needs
:
[
"
deploy
develop"
]
<<
:
*deploy_image
test develop deployment
:
stage
:
deploy
needs
:
[
"
deploy
develop"
,
"
deploy
develop
image"
]
<<
:
*test_deployment
release latest image
:
stage
:
release
extends
:
.tag image
variables
:
TARGET_ENV
:
latest
rules
:
-
when
:
manual
allow_failure
:
true
release stable image
:
stage
:
release
extends
:
.tag image
variables
:
TARGET_ENV
:
stable
rules
:
-
when
:
manual
allow_failure
:
true
python package
:
stage
:
release
variables
:
...
...
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