diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb5ecb6c80531636dde04352bd4e974680a37ba4..adb548c66670f5ae5b2f30860487ff8ffca349c2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,6 +39,7 @@ deploy docker image: stage: deploy image: bitnami/kubectl:latest script: + - echo $KUBECONFIG | base64 -d > /tmp/kubeconfig - cd deploy - sed -i s/IMAGE_TAG/$CI_COMMIT_REF_NAME@$(cat ../DIGESTFILE)/g deployment.yaml - - for file in *; do kubectl apply -f $file; done + - for file in *; do kubectl --kubeconfig=/tmp/kubeconfig apply -f $file; done diff --git a/deploy/ingress.yaml b/deploy/ingress.yaml index 9dd88ddd3cb65deb2a6a7d6c5325cc25155de031..a7d713b063730a34a6c206898b72519f6a3e2d66 100644 --- a/deploy/ingress.yaml +++ b/deploy/ingress.yaml @@ -29,9 +29,74 @@ spec: number: 80 path: / pathType: Prefix - + - host: hacknsun.camp + http: + paths: + - backend: + service: + name: teckids-website + port: + number: 80 + path: / + pathType: Prefix + - host: www.hacknsun.camp + http: + paths: + - backend: + service: + name: teckids-website + port: + number: 80 + path: / + pathType: Prefix + - host: hacknfun.camp + http: + paths: + - backend: + service: + name: teckids-website + port: + number: 80 + path: / + pathType: Prefix + - host: www.hacknfun.camp + http: + paths: + - backend: + service: + name: teckids-website + port: + number: 80 + path: / + pathType: Prefix + - host: teckids.de + http: + paths: + - backend: + service: + name: teckids-website + port: + number: 80 + path: / + pathType: Prefix + - host: www.teckids.de + http: + paths: + - backend: + service: + name: teckids-website + port: + number: 80 + path: / + pathType: Prefix tls: - hosts: - teckids.org - www.teckids.org + - hacknsun.camp + - www.hacknsun.camp + - hacknfun.camp + - www.hacknfun.camp + - teckids.de + - www.teckids.de secretName: teckids-website-tls