-
Notifications
You must be signed in to change notification settings - Fork 3
/
.magento-actions-full-template.yml
268 lines (231 loc) · 5.79 KB
/
.magento-actions-full-template.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
default:
artifacts:
untracked: true
expire_in: 1h
image:
name: ghcr.io/mad-i-t/magento-actions:3.30
entrypoint: [ "" ]
services:
- name: mysql:5.7
alias: mysql
#- name: elasticsearch:7.6.2
# alias: elasticsearch
# command: [ "bin/elasticsearch", "-Expack.security.enabled=false", "-Ediscovery.type=single-node" ]
- name: ghcr.io/mad-i-t/gitlab-ci-magento/opensearch:2.5.0
alias: elasticsearch opensearch
command: ["bash", "-c", "env 'discovery.type=single-node' 'cluster.name=opensearch' ./opensearch-docker-entrypoint.sh"]
- name: rabbitmq:3.9-alpine
alias: rabbitmq
before_script:
- ls
- pwd
.default-script:
allow_failure: true
script:
- curl "http://elasticsearch:9200/"
- bash /entrypoint.sh
variables:
OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m"
DISABLE_INSTALL_DEMO_CONFIG: "true"
DISABLE_SECURITY_PLUGIN: "true"
RABBITMQ_DEFAULT_USER: "magento"
RABBITMQ_DEFAULT_PASS: "magento"
RABBITMQ_DEFAULT_VHOST: "/"
BUCKET_COMMIT: bucket-commit-$CI_COMMIT_SHA.tar.gz
MYSQL_ROOT_PASSWORD: magento
MYSQL_DATABASE: magento
INPUT_PHP: "auto"
INPUT_PROCESS: ""
INPUT_OVERRIDE_SETTINGS: "0"
COMPOSER_AUTH: $COMPOSER_AUTH
SSH_PRIVATE_KEY: $STAGE_SSH_PRIVATE_KEY
SSH_CONFIG: $STAGE_SSH_CONFIG
INPUT_DEPLOYER: 0
INPUT_ELASTICSUITE: 0
INPUT_COMPOSER_VERSION: 0
INPUT_KEEP_RELEASES: 0
INPUT_EXTENSION: ''
INPUT_SEVERITY: 1
INPUT_MAGENTO_VERSION: 0
INPUT_DISABLE_MODULES: ''
INPUT_ENABLE: ''
INPUT_NO_PUSH: 0
INPUT_UNIT_TEST_CONFIG: 'dev/tests/unit/phpunit.xml.dist'
INPUT_NODE_VERSION: 16
INPUT_STANDARD: 'Magento2'
USER: $STAGE_USER
HOST: $STAGE_HOST
HOST_DEPLOY_PATH: $STAGE_HOST_DEPLOY_PATH
HOST_DEPLOY_PATH_BUCKET: $STAGE_HOST_DEPLOY_PATH/bucket
cache:
key: composer
paths:
- ~/.composer/cache
stages:
- install
- build
- test
- security-scan
- deploy
- cleanup
.install-magento:stage:install:
variables:
INPUT_PROCESS: "create-project"
INPUT_MAGENTO_VERSION: "2.4.7"
INPUT_NO_PUSH: 1
extends: .default-script
stage: install
environment:
name: staging
.pwa-studio:stage:install:
variables:
INPUT_PROCESS: "pwa-studio-install"
INPUT_OVERRIDE_SETTINGS: 1
INPUT_NO_PUSH: 1
extends: .default-script
stage: install
environment:
name: staging
.install-mage-os:stage:install:
variables:
INPUT_PROCESS: "install-mage-os"
INPUT_MAGENTO_VERSION: "2.4.5-p1"
INPUT_NO_PUSH: 1
extends: .default-script
stage: install
environment:
name: staging
.build:stage:
variables:
INPUT_PROCESS: "build"
INPUT_OVERRIDE_SETTINGS: "0"
extends: .default-script
stage: build
environment:
name: staging
.static-test:stage:test:
variables:
INPUT_PROCESS: "static-test"
extends: .default-script
stage: test
environment:
name: staging
.unit-test:stage:test:
variables:
INPUT_PROCESS: "unit-test"
extends: .default-script
stage: test
environment:
name: staging
.unit-test-testsuite:stage:test:
variables:
INPUT_PROCESS: "unit-test"
INPUT_TESTSUITE: "Magento_Unit_Tests_Other"
extends: .default-script
stage: test
environment:
name: staging
.unit-test-custom-path:stage:test:
variables:
INPUT_PROCESS: "unit-test"
INPUT_UNIT_TEST_SUBSET_PATH: 'vendor/magento/module-email/Test/Unit'
extends: .default-script
stage: test
environment:
name: staging
.mess-detector:test:stage:
variables:
INPUT_PROCESS: "mess-detector"
INPUT_MD_PATH: 'magento/vendor/magento/module-email'
extends: .default-script
stage: test
environment:
name: staging
.phpstan:test:stage:
variables:
INPUT_PROCESS: "phpstan"
INPUT_MD_PATH: 'magento/vendor/magento/module-email'
extends: .default-script
stage: test
environment:
name: staging
.coding-standard:test:stage:
variables:
INPUT_PROCESS: "phpcs-test"
INPUT_EXTENSION: 'magento/vendor/magento/module-email'
extends: .default-script
stage: test
environment:
name: staging
.security-scan-files:stage:test:
variables:
INPUT_PROCESS: "security-scan-files"
INPUT_OVERRIDE_SETTINGS: "0"
extends: .default-script
stage: test
environment:
name: staging
.security-scan-module:stage:test:
variables:
INPUT_PROCESS: "security-scan-modules"
INPUT_OVERRIDE_SETTINGS: "0"
extends: .default-script
stage: test
environment:
name: staging
.integration-test-testsuite:stage:test:
variables:
INPUT_PROCESS: "integration-test"
INPUT_TESTSUITE: "Memory Usage Tests"
extends: .default-script
stage: test
environment:
name: staging
.integration-test-class:stage:test:
variables:
INPUT_PROCESS: "integration-test"
INPUT_INTEGRATION_CLASS: "./testsuite/Magento/MemoryUsageTest.php"
extends: .default-script
stage: test
environment:
name: staging
.integration-test-class-filter:stage:test:
variables:
INPUT_PROCESS: "integration-test"
INPUT_TESTSUITE: "Memory Usage Tests"
INPUT_INTEGRATION_CLASS: "./testsuite/Magento/MemoryUsageTest.php"
INPUT_INTEGRATION_FILTER: "testAppReinitializationNoMemoryLeak"
extends: .default-script
stage: test
environment:
name: staging
.deploy-staging:stage:deploy:
variables:
INPUT_PROCESS: "deploy-staging"
extends: .default-script
stage: deploy
environment:
name: staging
.cleanup-staging:stage:cleanup:
variables:
INPUT_PROCESS: "cleanup-staging"
extends: .default-script
stage: cleanup
when: on_failure
environment:
name: staging
.deploy-production:stage:deploy:
variables:
INPUT_PROCESS: "deploy-prod"
extends: .default-script
stage: deploy
environment:
name: production
.cleanup-production:stage:cleanup:
variables:
INPUT_PROCESS: "cleanup-prod"
extends: .default-script
stage: cleanup
when: on_failure
environment:
name: production