Commit 2cf26e7e authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Aktualisieren .gitlab-ci.yml

parent 97e7fc45
......@@ -3,6 +3,7 @@ variables:
NAMESPACE: "nane-kratzke"
VERSION: "0.0.1"
BRANCH: "$CI_COMMIT_BRANCH"
URL: "prime-nk.loki.th-luebeck.dev"
stages:
- prepare
......@@ -53,7 +54,8 @@ prime-service:
script:
- echo "Deploying to Kubernetes"
- wget -q https://github.com/mikefarah/yq/releases/download/3.4.0/yq_linux_amd64 -O ./yq && chmod +x yq
- ./yq r deploy/service/prime-ingress.yaml spec.rules[0].host
- ./yq w -i deploy/service/prime-ingress.yaml spec.rules[0].host $URL
- ./yq w -i deploy/service/prime-ingress.yaml spec.tls[0].hosts[0] $URL
- kubectl delete -f deploy/service -n $NAMESPACE || true
- kubectl apply -f deploy/service -n $NAMESPACE
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment