-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
119 lines (118 loc) · 3.54 KB
/
bitbucket-pipelines.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
pipelines:
pull-requests:
'**':
- step:
image: docker/compose:alpine-1.25.3
name: Build
script:
- docker build -f ./docker/Dockerfile --target builder -t tmp-build:$BITBUCKET_COMMIT .
- docker run --rm -v $PWD/:/opt/app tmp-build:$BITBUCKET_COMMIT composer install --prefer-dist --no-progress --no-suggest
services:
- docker
artifacts:
- vendor/**
- parallel:
- step:
image: docker/compose:alpine-1.25.3
name: Easy Coding Standards
script:
- apk add make
- make ecs
services:
- docker
caches:
- docker
- step:
image: docker/compose:alpine-1.25.3
name: Php mess detector
script:
- apk add make
- make phpmd
services:
- docker
caches:
- docker
- step:
image: docker/compose:alpine-1.25.3
name: Phpstan
script:
- ls -a
- apk add make
- make phpstan
services:
- docker
caches:
- docker
- step:
name: build image
image: docker/compose:alpine-1.25.3
trigger: manual
cache:
composer
docker
script:
- apk add make
- docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_PASSWORD
- make docker-build-image
- make docker-push-image DOCKER-IMAGE-VERSION=$BITBUCKET_COMMIT
services:
- docker
tags:
release-*:
- step:
image: docker/compose:alpine-1.25.3
name: Build
script:
- docker build -f ./docker/Dockerfile --target builder -t tmp-build:$BITBUCKET_COMMIT .
- docker run --rm -v $PWD/:/opt/app tmp-build:$BITBUCKET_COMMIT composer install --prefer-dist --no-progress --no-suggest
services:
- docker
artifacts:
- vendor/**
- parallel:
- step:
image: docker/compose:alpine-1.25.3
name: Easy Coding Standards
script:
- apk add make
- make ecs
services:
- docker
caches:
- docker
- step:
image: docker/compose:alpine-1.25.3
name: Php mess detector
script:
- apk add make
- make phpmd
services:
- docker
caches:
- docker
- step:
image: docker/compose:alpine-1.25.3
name: Phpstan
script:
- ls -a
- apk add make
- make phpstan
services:
- docker
caches:
- docker
- step:
name: build image
image: docker/compose:alpine-1.25.3
trigger: manual
cache:
composer
docker
script:
- export RELEASE=${BITBUCKET_TAG#"release-"}
- apk add make
- docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_PASSWORD
- make docker-build-image
- make docker-push-image DOCKER-IMAGE-VERSION=$RELEASE
services:
- docker