-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitlab-ci.yml
62 lines (49 loc) · 1.46 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
variables:
TZ: "America/New_York"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
APT_CACHE_DIR: "$CI_PROJECT_DIR/apt-cache"
POSTGRES_DB: custom_db
POSTGRES_USER: custom_user
POSTGRES_PASSWORD: custom_pass
FARADAY_USER: custom_user
FARADAY_PASSWORD: custom_pass
FARADAY_EMAIL: [email protected]
FARADAY_REF: white/dev
EXECUTOR_DIR: ./basic_executor.py
VAULT_ROLE: 'python-sast-readonly'
VAULT_ADDR: 'https://tluav-lb.faradaysec.com'
VAULT_SECRET_PATH: 'gitlab/SAST'
TYPING_BRANCH: 'dev'
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
stages:
- testing
# - post_testing
- integration-build
- integration-test
- build
- publish
- deploy
services:
- postgres:latest
include:
- local: docs/.gitlab-ci.yml
- local: .gitlab/ci/.rules-conditions.yml
- local: .gitlab/ci/.pre-gitlab-ci.yml
- local: .gitlab/ci/fetch-secrets.yml
- local: .gitlab/ci/testing/.testing-gitlab-ci.yml
#- local: .gitlab/ci/testing/.post-gitlab-ci.yml
- local: .gitlab/ci/plugins-integration/.build-gitlab-ci.yml
#- local: .gitlab/ci/plugins-integration/.testing-gitlab-ci.yml
- local: .gitlab/ci/build_ci/.build-gitlab-ci.yml
- local: .gitlab/ci/publish/.pypi-gitlab-ci.yml
- local: .gitlab/ci/publish/.publish-dockerhub-gitlab-ci.yml