Skip to content
Snippets Groups Projects
Commit 7c955e75 authored by Ahmed Ilyas's avatar Ahmed Ilyas
Browse files

Remove deployments

parent 82b6827f
Branches
No related tags found
No related merge requests found
Pipeline #216153 passed
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment