Skip to content
Snippets Groups Projects
Commit ee0c0574 authored by maik.schaefer's avatar maik.schaefer
Browse files

update gitlab ci

parent 881bade8
No related branches found
No related tags found
No related merge requests found
...@@ -8,3 +8,4 @@ docker-compose.yml ...@@ -8,3 +8,4 @@ docker-compose.yml
Dockerfile Dockerfile
README.md README.md
helm helm
.gitlab-ci/
...@@ -4,18 +4,12 @@ include: ...@@ -4,18 +4,12 @@ include:
# Helm is used for deploying everything to kubernetes # Helm is used for deploying everything to kubernetes
# Afterwards we do a rolling restart of our deployment # Afterwards we do a rolling restart of our deployment
deploy: deploy helm chart:
stage: deploy extends: .auto-deploy-helm-chart
image: dtzar/helm-kubectl
tags:
- kubernetes
script:
- envsubst < helm/values/develop.yaml > values.yaml
- kubectl create secret docker-registry gitlab-registry-credentials --docker-server=$CI_REGISTRY --docker-username=$GITLAB_DEPLOY_USER --docker-password=$GITLAB_DEPLOY_PASSWORD --dry-run=client -o yaml | kubectl apply -f -
- helm upgrade -i manifest-service helm/manifest-service -f values.yaml
- kubectl rollout restart deployment manifest-service
environment: environment:
name: $CI_COMMIT_REF_SLUG name: $CI_COMMIT_REF_SLUG
on_stop: tear down
auto_stop_in: 1 week
url: https://manifest-$CI_COMMIT_REF_SLUG.k3s.os.oxui.de/ url: https://manifest-$CI_COMMIT_REF_SLUG.k3s.os.oxui.de/
only: only:
- main - main
replicaCount: 1
containerPort: 8080
manifests:
- https://manifest-service-dummy.k3s.os.oxui.de/manifest.json
ingress:
enabled: true
hosts:
- host: manifest-${CI_COMMIT_REF_SLUG}.k3s.os.oxui.de
paths:
- path: /
image:
tag: main
pullPolicy: Always
imagePullSecrets:
- name: gitlab-registry-credentials
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment