-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
53 lines (50 loc) · 1.09 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
53 lines (50 loc) · 1.09 KB
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
include:
- local: /.gitlab/security-ci.yml
- local: /.gitlab/secret-ci.yml
- local: /.gitlab/tag-ci.yml
- local: /.gitlab/publish-ci.yml
- local: /.gitlab/release-ci.yml
stages:
- test
- tag
- publish
- release
security:
extends: .security
secret:
extends: .secret
shell-linter:
stage: test
rules:
- if: '$CI_COMMIT_TAG'
when: never
- if: '$CI_COMMIT_BRANCH'
image: alpine
variables:
SHELLCHECK_VERSION: "0.10.0"
before_script:
- |
apk add bash
(cd /usr/local/bin; wget https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz -O- | tar --strip-components 1 -xJvf - shellcheck-v$SHELLCHECK_VERSION/shellcheck)
shellcheck -V
script:
- 'shellcheck compose-systemd'
.tag_base:
extends: .tag
needs:
- security
- secret
- shell-linter
tag:major:
extends: .tag_base
tag:minor:
extends: .tag_base
tag:patch:
extends: .tag_base
publish:
extends: .publish
gitlab-release:
extends: .release
needs:
- job: publish
artifacts: true