gitlab-ultimate.gitlab-ci.yml 1.27 KB
Newer Older
1
2
include:
  - template: Dependency-Scanning.gitlab-ci.yml
3
4
  - template: SAST.gitlab-ci.yml
  - template: Container-Scanning.gitlab-ci.yml
5
6
  - template: License-Management.gitlab-ci.yml

7
8
9
# --------------------------------------------------------------------------------

# https://gitlab.com/gitlab-org/gitlab/issues/34576
10
11
12
13
dependency_scanning:
  stage: test
  tags: ['docker-dind-runner']

14
15
# --------------------------------------------------------------------------------

16
17
sast:
  stage: test
18
19
20
21
22
23
  tags: ['docker-runner']
  cache:
    paths:
      - $MAVEN_REPO_PATH
      - ./*/target

24
  variables:
25
26
27
    MAVEN_REPO_PATH: "$CI_PROJECT_DIR/.m2/repository"
    MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/gitlab-maven.settings.xml -Dmaven.repo.local=$MAVEN_REPO_PATH"
    SAST_DISABLE_DIND: "true"
28

29
# --------------------------------------------------------------------------------
30

31
32
33
34
container_scanning:
  stage: verify
  tags: ['docker-dind-runner']

35
36
license_management:
  stage: test
37
38
39
40
41
42
43
44
45
  tags: ['docker-runner']
  cache:
    paths:
      - $MAVEN_REPO_PATH
      - ./*/target

  variables:
    MAVEN_REPO_PATH: "$CI_PROJECT_DIR/.m2/repository"
    MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/gitlab-maven.settings.xml -Dmaven.repo.local=$MAVEN_REPO_PATH -DskipTests=true"