-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitlab-ci.yml
42 lines (37 loc) · 1.13 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
stages:
- build
- extract_load
- transform
- analytics
##########################
# Job templates
##########################
.base:
image: python:3.10-slim-bullseye
.base_rules:
rules:
- if: '$RUN_ALL_JOBS == "true"'
when: manual
.elt_rules:
rules:
- if: '$FULL_REFRESH == "true"'
when: manual
# Global variables
variables:
SRC_DATA_PIPELINE: "data_pipeline"
IMAGES_WORKDIR: "/project"
# Separate files for each use case
# Prevent pipeline to be running if we change one gitlab-ci.yaml file containing all use cases
include:
- ".gitlab-ci/env_vars/image-meltano.yml"
- ".gitlab-ci/env_vars/image-dbt.yml"
- ".gitlab-ci/env_vars/image-gooddata.yml"
# TODO - elta.yaml contains variables for all jobs (ELT, analytics). Split it, so its change does not trigger all jobs
- ".gitlab-ci/env_vars/elta.yml"
- ".gitlab-ci/gitlab-ci-build-base.yml"
- ".gitlab-ci/gitlab-ci-build-meltano.yml"
- ".gitlab-ci/gitlab-ci-build-dbt.yml"
- ".gitlab-ci/gitlab-ci-build-gooddata.yml"
- ".gitlab-ci/gitlab-ci-extract-load.yml"
- ".gitlab-ci/gitlab-ci-transform.yml"
- ".gitlab-ci/gitlab-ci-analytics.yml"