Skip to content
Snippets Groups Projects
Commit 21ae2f94 authored by Adam Fekete's avatar Adam Fekete
Browse files

Update .gitlab-ci.yml file

parent 9e75f4ea
No related branches found
No related tags found
1 merge request!121Draft: Resolve "Refactoring the infrastructure"
......@@ -29,20 +29,20 @@ build to develop:
# Execute jobs when a new commit is pushed to master branch
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop"
build to staging:
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_UPDATE_FLAGS: --jobs 4
before_script:
- echo "Building the single user notebook image"
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
script:
- docker build -t ${STAGING_IMAGE} .
- docker push ${STAGING_IMAGE}
rules:
# Execute jobs when a new commit is pushed to develop branch
- if: $CI_COMMIT_BRANCH == "develop"
# build to staging:
# stage: build
# variables:
# GIT_SUBMODULE_STRATEGY: recursive
# GIT_SUBMODULE_UPDATE_FLAGS: --jobs 4
# before_script:
# - echo "Building the single user notebook image"
# - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
# script:
# - docker build -t ${STAGING_IMAGE} .
# - docker push ${STAGING_IMAGE}
# rules:
# # Execute jobs when a new commit is pushed to develop branch
# - if: $CI_COMMIT_BRANCH == "develop"
# build to production:
# stage: build
......@@ -84,8 +84,8 @@ deploy to develop:
--cleanup-on-fail
--values deployments/dev-values.yaml
--set hub.baseUrl=/dev/${CI_ENVIRONMENT_SLUG}
--set fullnameOverride=${CI_ENVIRONMENT_SLUG}-dev
--set singleuser.podNameTemplate="${CI_ENVIRONMENT_SLUG}-dev-{username}"
--set fullnameOverride=${CI_ENVIRONMENT_SLUG}
--set singleuser.podNameTemplate="${CI_ENVIRONMENT_SLUG}-{username}"
--set hub.config.GenericOAuthenticator.oauth_callback_url=https://analytics-toolkit.nomad-coe.eu/dev/${CI_ENVIRONMENT_SLUG}/hub/oauth_callback
--set singleuser.image.name=${CI_REGISTRY_IMAGE}
--set singleuser.image.tag=${CI_COMMIT_REF_SLUG}
......@@ -106,7 +106,7 @@ stop deploy dev:
script:
- helm uninstall ${CI_ENVIRONMENT_SLUG} --namespace analytics
when: manual
needs: ["build"]
needs: ["build to develop"]
# deploy to staging:
# stage: deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment