-
Notifications
You must be signed in to change notification settings - Fork 917
/
.gitlab-ci.yml
68 lines (56 loc) · 1.81 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
variables:
TZ: "America/New_York"
# Configure postgres service (https://hub.docker.com/_/postgres/)
POSTGRES_DB: custom_db
POSTGRES_USER: custom_user
POSTGRES_PASSWORD: custom_pass
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
APT_CACHE_DIR: "$CI_PROJECT_DIR/apt-cache"
DEBIAN_FRONTEND: noninteractive
IMAGE_TAG: 'egrep -o "[0-9]\.([0-9]|[0-9][0-9])(\.[0-9])?" faraday/__init__.py'
VAULT_SERVER_URL: https://tluav-lb.faradaysec.com
VAULT_AUTH_ROLE: faraday-env-readonly
VAULT_AUTH_PATH: jwt
FOLDER: master
workflow:
rules:
- if: $CI_MERGE_REQUEST_ID
when: never
- when: always
cache:
paths:
- "$CI_PROJECT_DIR/.cache/pip"
- "$CI_PROJECT_DIR/apt-cache"
before_script:
- mkdir -pv $APT_CACHE_DIR
include:
- local: .gitlab/ci/get-secrets.yml
- local: .gitlab/ci/.rules-conditions.yml
- local: .gitlab/ci/testing/.pretesting-gitlab-ci.yml
- local: .gitlab/ci/testing/.nix-testing-gitlab-ci.yml
- local: .gitlab/ci/testing/.venv-testing-gitlab-ci.yml
- local: .gitlab/ci/testing/.hypothesis-nix-gitlab-ci.yml
# - local: .gitlab/ci/testing/.posttesting-gitlab-ci.yml
- local: .gitlab/ci/build-ci/.prebuild-gitlab-ci.yml
- local: .gitlab/ci/build-ci/.build-gitlab-ci.yml
- local: .gitlab/ci/build-ci/.testing-gitlab-ci.yml
- local: .gitlab/ci/upload/.storage-gitlab-ci.yml
- local: .gitlab/ci/deploy/deploy-gitlab-ci.yml
- local: .gitlab/ci/publish/.set-tag-gitlab-ci.yml
- local: .gitlab/ci/publish/.mirror-to-github-gitlab-ci.yml
- local: .gitlab/ci/publish/.docker-publish-gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml
stages:
- pre_testing
- test
# - post_testing
- pre_build
- build
- build_testing
- upload
- upload_testing
- deploy
- publish
services:
- postgres:latest
- redis:latest