Fix deployment and add www.unbound.se to ingress

This commit is contained in:
2018-11-29 14:19:09 +01:00
parent 85f20c126c
commit dc1f97921f
2 changed files with 23 additions and 1 deletions
+16 -1
View File
@@ -1,4 +1,8 @@
job1:
stages:
- build
- deploy
build:
stage: build
image: docker
services:
@@ -10,3 +14,14 @@ job1:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker push $CI_REGISTRY_IMAGE:latest
deploy:
stage: deploy
script:
- echo "Deploy to production"
environment:
name: prod
url: https://unbound.se
only:
- master
+7
View File
@@ -15,3 +15,10 @@ spec:
backend:
serviceName: unbound-site
servicePort: 80
- host: "www.unbound.se"
http:
paths:
- path: /
backend:
serviceName: unbound-site
servicePort: 80