forked from renatolond/mastodon-twitter-poster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.disabed.yml
45 lines (39 loc) · 893 Bytes
/
.gitlab-ci.disabed.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
stages:
- build
- production
include:
- ci/build.yaml
- ci/production.yaml
.default-refs:
only:
refs:
- trunk
- merge_requests
- tags
.deploy_helpers: &deploy_helpers |
function deploy() {
helm dependency update chart/
helm upgrade \
--install \
--atomic \
--set image.repository="$DEPLOY_IMAGE" \
--set image.tag="$DEPLOY_TAG" \
--set ingress.hosts[0].paths[0].path="/" \
$HELM_ARGS \
--namespace="$KUBE_NAMESPACE" \
--create-namespace \
"$HELM_RELEASE_NAME" \
chart/
}
function delete_deployment() {
helm delete --namespace "$KUBE_NAMESPACE" "$HELM_RELEASE_NAME"
}
.deploy:
image: dtzar/helm-kubectl:3.5.4
needs:
- build-app
variables:
DEPLOY_IMAGE: $CI_REGISTRY_IMAGE
DEPLOY_TAG: $CI_COMMIT_SHA
before_script:
- *deploy_helpers