Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shiny-k8s-example
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Analyze
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
hub
shiny-k8s-example
Commits
193f4aa8
Commit
193f4aa8
authored
1 year ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Plain Diff
Merge branch 'base-common' into base-python
parents
e270b8c9
d61f2a6a
No related branches found
No related tags found
No related merge requests found
Pipeline
#132812
failed
1 year ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+3
-1
3 additions, 1 deletion
.gitignore
.gitlab-ci.yml
+4
-0
4 additions, 0 deletions
.gitlab-ci.yml
dohelm.sh
+0
-30
0 additions, 30 deletions
dohelm.sh
with
7 additions
and
31 deletions
.gitignore
+
3
−
1
View file @
193f4aa8
...
...
@@ -26,4 +26,6 @@ chart/charts/*tgz
Chart.lock
tokens.sh
logs/
*.pyc
\ No newline at end of file
*.pyc
dohelm.sh
apply-package-renaming.sh
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
4
−
0
View file @
193f4aa8
...
...
@@ -5,6 +5,8 @@ image: docker:24
build
:
except
:
-
base-common
rules
:
-
when
:
on_success
stage
:
build
needs
:
[]
before_script
:
...
...
@@ -34,6 +36,8 @@ build:
.deploy
:
except
:
-
base-common
rules
:
-
when
:
on_success
stage
:
deploy
needs
:
-
"
build"
...
...
This diff is collapsed.
Click to expand it.
dohelm.sh
deleted
100755 → 0
+
0
−
30
View file @
e270b8c9
#!/usr/bin/env bash
touch
tokens.sh
source
./tokens.sh
# put `export SECRET_KEY="..."` in this file
NAMESPACE
=
"rshiny-dev"
CI_PROJECT_NAMESPACE
=
"hub"
CI_PROJECT_NAME
=
"shiny-k8s-example"
CI_REGISTRY
=
"registry-gitlab.pasteur.fr"
CI_REGISTRY_IMAGE
=
"
${
CI_REGISTRY
}
/
${
CI_PROJECT_NAMESPACE
}
/
${
CI_PROJECT_NAME
}
"
CI_COMMIT_SHA
=
$(
git log
--format
=
"%H"
-n
1
)
# CI_COMMIT_SHA="63a65791c93197d280f302a67983756f91b9a1db"
CI_COMMIT_REF_SLUG
=
$(
git branch
--show
)
INGRESS_CLASS
=
"internal"
PUBLIC_URL
=
"
${
CI_PROJECT_NAME
}
-
${
CI_COMMIT_REF_SLUG
}
.dev.pasteur.cloud"
IMAGE
=
"
${
CI_REGISTRY_IMAGE
}
/
${
CI_COMMIT_REF_SLUG
}
:
${
CI_COMMIT_SHA
::8
}
"
CHART_LOCATION
=
"chart"
export
ACTION
=
"upgrade --install"
export
ACTION
=
"template --debug"
helm
${
ACTION
}
--namespace
=
${
NAMESPACE
}
\
--render-subchart-notes
\
--set
shiny-k8s-toolkit-helm.ingress.className
=
${
INGRESS_CLASS
}
\
--set
shiny-k8s-toolkit-helm.ingress.hostname
=
${
PUBLIC_URL
}
\
--set
shiny-k8s-toolkit-helm.imageFullNameAndTag
=
${
IMAGE
}
\
--set
shiny-k8s-toolkit-helm.registry.username
=
${
DEPLOY_USER
}
\
--set
shiny-k8s-toolkit-helm.registry.password
=
${
DEPLOY_TOKEN
}
\
--set
shiny-k8s-toolkit-helm.registry.host
=
${
CI_REGISTRY
}
\
${
CI_COMMIT_REF_SLUG
}
-
${
CHART_LOCATION
}
./
${
CHART_LOCATION
}
/
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