Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
analytics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
analytics
Commits
21ae2f94
Commit
21ae2f94
authored
3 years ago
by
Adam Fekete
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
9e75f4ea
No related branches found
No related tags found
1 merge request
!121
Draft: Resolve "Refactoring the infrastructure"
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-17
17 additions, 17 deletions
.gitlab-ci.yml
with
17 additions
and
17 deletions
.gitlab-ci.yml
+
17
−
17
View file @
21ae2f94
...
...
@@ -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
...
...
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