Fix deployment and add www.unbound.se to ingress
This commit is contained in:
+16
-1
@@ -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
|
||||
|
||||
|
||||
@@ -15,3 +15,10 @@ spec:
|
||||
backend:
|
||||
serviceName: unbound-site
|
||||
servicePort: 80
|
||||
- host: "www.unbound.se"
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: unbound-site
|
||||
servicePort: 80
|
||||
|
||||
Reference in New Issue
Block a user