-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.common-ci.yml
54 lines (49 loc) · 1.17 KB
/
.common-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
##
## Environmnet variables required for build
## API_TOKEN - gitlab access token with (read_api, read_repository, read_registry)
##
variables:
# project specific variables
DRIVER_VERSION: "450.119.03"
ALL_DRIVER_VERSIONS: "450.119.03 460.73.01"
GIT_SSL_NO_VERIFY: "true"
TF_VERSION: "0.12.18"
default:
image: docker:stable
services:
- docker:stable-dind
stages:
- syntax-check
- driver-tags
- build
- test
- scan
- deploy
- release
shellcheck:
stage: syntax-check
image:
name: koalaman/shellcheck-alpine
services: []
before_script: []
script:
- shellcheck --version
- shellcheck --external-sources ci/run.sh
- shellcheck --external-sources ci/build.sh
- shellcheck --external-sources ci/gitlab-get-driver-tags.sh
except:
- schedules
gettags:
stage: driver-tags
image: docker:stable
artifacts:
paths:
- driver-tags
expire_in: 2 weeks
script:
# Install build dependencies
- apk add --no-cache bash curl jq
# Log into docker
- docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
# Get list of tags from registry
- "./ci/gitlab-get-driver-tags.sh"