Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WWU Kube PHP Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
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
project-templates
WWU Kube PHP Server
Commits
74371a6b
Commit
74371a6b
authored
1 year ago
by
Leon Welchert
Browse files
Options
Downloads
Plain Diff
Merge branch 'oci-chart' into 'main'
Switch to OCI Helm Chart See merge request
!2
parents
2fc789bc
bc2ccad4
No related branches found
No related tags found
1 merge request
!2
Switch to OCI Helm Chart
Pipeline
#247334
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-7
4 additions, 7 deletions
.gitlab-ci.yml
with
4 additions
and
7 deletions
.gitlab-ci.yml
+
4
−
7
View file @
74371a6b
...
...
@@ -16,7 +16,7 @@ variables:
# This has to be changed, if a newer version of the helm chart should be used.
# development of the web server helm chart occurs here:
# https://zivgitlab.uni-muenster.de/wwu-it/wwukube/helm-charts/-/tree/main/webserver
helm_chart_version
:
0.0.
4
helm_chart_version
:
0.0.
12
# Cluster on which to deploy the website.
# Most websites will run on wwukube-prod-ms1.
cluster
:
wwukube-prod-ms1
...
...
@@ -133,12 +133,9 @@ Deploy new Image:
}
EOF
# Add helm repo
-
helm repo add helm-charts https://harbor.uni-muenster.de/chartrepo/helm-charts
# Deploy to the WWU Kube while overiding image repository and tag with the newly built docker image
-
helm --kube-context "$cluster" upgrade "$release"
helm-charts/webserver --install --namespace "$namespace"
--set "image.repository=$CI_REGISTRY_IMAGE/$name"
--set "image.tag=$CI_COMMIT_SHORT_SHA"
--version $helm_chart_version -f helm-values.yaml
-
helm --kube-context "$cluster" upgrade "$release"
oci://harbor.uni-muenster.de/helm-charts/webserver
--install --namespace "$namespace"
--set "image.repository=$CI_REGISTRY_IMAGE/$name"
--set "image.tag=$CI_COMMIT_SHORT_SHA"
--version $helm_chart_version -f helm-values.yaml
rules
:
-
if
:
$deploy == "true"
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