forked from transip/transip-api-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
74 lines (66 loc) · 1.11 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
63
64
65
66
67
68
69
70
71
72
73
74
variables:
DOCKER_IMAGE: '$IMAGE_URL'
image: '$DOCKER_IMAGE'
stages:
- lint
- validate
- deploy
- release
lint:php:
stage: lint
script:
- parallel-lint .
tags:
- k8s
lint:php-codestyle:
stage: lint
script:
- php-cs-fixer fix -v --dry-run --using-cache=no . --config .php_cs.dist
tags:
- k8s
lint:composer:
stage: lint
script:
- composer validate --no-interaction --strict
tags:
- k8s
lint:secretsscan:
image: '$IMAGE_URL_PYTHON'
stage: lint
script:
- ci/scan_secrets.sh
tags:
- k8s
validate:tag-message:
stage: validate
only:
- tags
script:
- ci/validate_tag_message.sh $CI_COMMIT_TAG
tags:
- k8s
validate:tag-version-consistency:
stage: validate
only:
- tags
script:
- composer dump-autoload
- php ci/ValidateTagVersionConsistency.php $CI_COMMIT_TAG
tags:
- k8s
deploy:deploy-to-github:
stage: deploy
only:
- tags
script:
- ci/deploy_to_github.sh
tags:
- k8s
release:release-to-github:
stage: release
only:
- tags
script:
- ci/release_to_github.sh $CI_COMMIT_TAG
tags:
- k8s