-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
50 lines (45 loc) · 1.03 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
stages:
- deploy
.deploy-aws:
stage: deploy
tags:
- aws
- mozmeao
variables:
INGRESSFILENAME: ingress-controller.sh
script:
- if [ -f "${DEPLOYMENT}/${INGRESSFILENAME}" ]; then ./${DEPLOYMENT}/${INGRESSFILENAME} ; fi
- kubectl apply -f ${DEPLOYMENT}
- ./rollout-status.sh ${DEPLOYMENT}
deploy frankfurt dev:
extends: .deploy-aws
variables:
DEPLOYMENT: mozmeao-fr/nucleus-dev
KUBECONFIG: /home/gitlab-runner/.kube/mozmeao-fr-1.kubeconfig
NS: nucleus-dev
only:
changes:
- mozmeao-fr/nucleus-dev/*
refs:
- master
deploy frankfurt stage:
extends: .deploy-aws
variables:
DEPLOYMENT: mozmeao-fr/nucleus-stage
NS: nucleus-stage
only:
changes:
- mozmeao-fr/nucleus-stage/*
refs:
- master
deploy frankfurt prod:
extends: .deploy-aws
variables:
DEPLOYMENT: mozmeao-fr/nucleus-prod
KUBECONFIG: /home/gitlab-runner/.kube/mozmeao-fr-1.kubeconfig
NS: nucleus-prod
only:
changes:
- mozmeao-fr/nucleus-prod/*
refs:
- master