Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ASM
dkim-validator
Commits
66213dde
Commit
66213dde
authored
Oct 09, 2019
by
Hogne Håskjold
Browse files
Update to use gitlab-ci-helpers and update deprecated Deployment apiVersion
parent
5a03a012
Pipeline
#22085
passed with stages
in 5 minutes and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
66213dde
image
:
registry.uninett.no/asm/kubernetes-deploy:v0.13
include
:
-
project
:
'
asm/gitlab-ci-helpers'
file
:
'
/gitlab-ci-helpers.yml'
variables
:
KUBE_PROD_DOMAIN
:
dkim.paas2.uninett.no
...
...
@@ -14,57 +16,31 @@ stages:
-
production
build
:
extends
:
.docker-build
stage
:
build
script
:
-
build
only
:
-
branches
production
:
extends
:
.production
stage
:
production
variables
:
REPLICAS
:
"
2"
script
:
-
deploy dist/kubernetes.yml
environment
:
name
:
production
url
:
https://$KUBE_PROD_DOMAIN
when
:
manual
only
:
-
master
staging
:
extends
:
.staging
stage
:
staging
script
:
-
deploy dist/kubernetes.yml
environment
:
name
:
staging
url
:
https://$KUBE_TEST_ID-staging.paas2.uninett.no
only
:
-
master
review
:
extends
:
.review
stage
:
review
script
:
-
deploy dist/kubernetes.yml
environment
:
name
:
review/$CI_BUILD_REF_NAME
url
:
https://$KUBE_TEST_ID-$CI_ENVIRONMENT_SLUG.paas2.uninett.no
on_stop
:
stop_review
only
:
-
branches
except
:
-
master
stop_review
:
extends
:
.stop_review
stage
:
review
script
:
-
destroy
environment
:
name
:
review/$CI_BUILD_REF_NAME
action
:
stop
when
:
manual
only
:
-
branches
except
:
-
master
dist/kubernetes.yml
View file @
66213dde
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
$CI_ENVIRONMENT_SLUG
...
...
@@ -9,6 +9,9 @@ metadata:
build_id
:
"
$CI_BUILD_ID"
spec
:
replicas
:
$REPLICAS
selector
:
matchLabels
:
app
:
$CI_ENVIRONMENT_SLUG
template
:
metadata
:
labels
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment