summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: b5bdcc90c6d5fc4b195e556f74839b0a5057c706 (plain)
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
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables:
  DOCKER_DRIVER: overlay2
  MAJOR: 3
  TMP_IMAGE: $CI_REGISTRY_IMAGE/license-finder:$CI_COMMIT_SHA

include:
  - template: Container-Scanning.gitlab-ci.yml
  - template: Dependency-Scanning.gitlab-ci.yml
  - template: Jobs/Code-Quality.gitlab-ci.yml
  - template: License-Scanning.gitlab-ci.yml
  - local: .gitlab/build.yml
  - local: .gitlab/test.yml
  - local: .gitlab/deploy.yml

stages:
  - build
  - test
  - deploy

default:
  image:
    name: $TMP_IMAGE
    entrypoint: [""]
  tags: [gitlab-org]

container_scanning:
  variables:
    CI_APPLICATION_REPOSITORY: $CI_REGISTRY_IMAGE/license-finder # only predefined variables are parameter-expanded (no $TMP_IMAGE)

code_quality:
  before_script:
    - rm .rubocop.yml
  services:
    - docker:stable-dind
  tags: [gitlab-org-docker]

dependency_scanning:
  services:
    - docker:stable-dind
  tags: [gitlab-org-docker]

license_scanning:
  image:
    name: $TMP_IMAGE