-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
68 lines (52 loc) · 976 Bytes
/
.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
include:
- project: mishaga-cfg/ci-templates
file: templates.yaml
variables:
DOCKER_IMAGE: project_name
DOCKER_LOCAL_IMAGE: project_name_api
APP_NAME: api
stages:
- checks
- release
- deploy
# CI/CD pipeline
tests:
stage: checks
extends:
- .mr-or-default-branch
- .pytest-tests
lint:
stage: checks
extends:
- .mr-or-default-branch
- .flake8-lint
migrations:
stage: checks
extends:
- .mr-or-default-branch
- .alembic-migrations-check
semantic release:
stage: release
extends:
- .default-branch
- .semantic-release
push image:
stage: release
extends:
- .default-branch
- .build-and-push
needs:
- semantic release
deploy prod:
stage: deploy
extends:
- .default-branch
- .k8s-deploy
variables:
HELM_CHART_NAME: web
NAMESPACE: project-ns
SERVICE_NAME: back
SET: "applications.api.image.tag=${VERSION}"
needs:
- push image
- semantic release