Skip to content

Commit a7163d2

Browse files
committed
task: use generate-matrix script in GHA
1 parent 657fbee commit a7163d2

File tree

2 files changed

+19
-252
lines changed

2 files changed

+19
-252
lines changed

.github/workflows/build-docker-images.yaml

+19-252
Original file line numberDiff line numberDiff line change
@@ -82,264 +82,31 @@ jobs:
8282
run: |
8383
docker push "${{ env.DOCKER_REPOSITORY }}-base:${{ matrix.php-version }}-${{ matrix.flavour }}"
8484
85+
generate-matrix:
86+
runs-on: ubuntu-latest
87+
outputs:
88+
matrix: ${{ steps.generate-matrix.outputs.matrix }}
89+
steps:
90+
- name: Clone
91+
uses: actions/checkout@v3
92+
- uses: actions/setup-node@v3
93+
with:
94+
node-version: '18'
95+
- name: Generate matrix
96+
id: generate-matrix
97+
run: |
98+
matrix=$(node .github/scripts/generate-matrix.js)
99+
echo "matrix=${matrix}" >> $GITHUB_OUTPUT
85100
86101
build:
87-
needs: build-base
102+
needs:
103+
- build-base
104+
- generate-matrix
88105
runs-on: ubuntu-latest
89106

90107
strategy:
91108
fail-fast: false
92-
matrix:
93-
include:
94-
- shopware-version: v6.3.0.2
95-
php-version: "7.4"
96-
flavour: alpine
97-
template: https://github.com/shopware/production
98-
- shopware-version: v6.3.1.1
99-
php-version: "7.4"
100-
flavour: alpine
101-
template: https://github.com/shopware/production
102-
- shopware-version: v6.3.2.1
103-
php-version: "7.4"
104-
flavour: alpine
105-
template: https://github.com/shopware/production
106-
- shopware-version: v6.3.3.1
107-
php-version: "7.4"
108-
flavour: alpine
109-
template: https://github.com/shopware/production
110-
- shopware-version: v6.3.4.1
111-
php-version: "7.4"
112-
flavour: alpine
113-
template: https://github.com/shopware/production
114-
- shopware-version: v6.3.5.4
115-
php-version: "7.4"
116-
flavour: alpine
117-
template: https://github.com/shopware/production
118-
- shopware-version: v6.4.0.0
119-
php-version: "7.4"
120-
flavour: alpine
121-
template: https://github.com/shopware/production
122-
- shopware-version: v6.4.1.2
123-
php-version: "8.0"
124-
flavour: alpine
125-
template: https://github.com/shopware/production
126-
- shopware-version: v6.4.2.1
127-
php-version: "8.0"
128-
flavour: alpine
129-
template: https://github.com/shopware/production
130-
- shopware-version: v6.4.3.1
131-
php-version: "8.0"
132-
flavour: alpine
133-
template: https://github.com/shopware/production
134-
- shopware-version: v6.4.4.1
135-
php-version: "8.0"
136-
flavour: alpine
137-
template: https://github.com/shopware/production
138-
- shopware-version: v6.4.5.1
139-
php-version: "8.0"
140-
flavour: alpine
141-
template: https://github.com/shopware/production
142-
- shopware-version: v6.4.6.1
143-
php-version: "8.0"
144-
flavour: alpine
145-
template: https://github.com/shopware/production
146-
- shopware-version: v6.4.7.0
147-
php-version: "8.0"
148-
flavour: alpine
149-
template: https://github.com/shopware/production
150-
- shopware-version: v6.4.8.2
151-
php-version: "8.0"
152-
flavour: alpine
153-
template: https://github.com/shopware/production
154-
- shopware-version: v6.4.9.0
155-
php-version: "8.0"
156-
flavour: alpine
157-
template: https://github.com/shopware/production
158-
- shopware-version: v6.4.10.0
159-
php-version: "8.0"
160-
flavour: alpine
161-
template: https://github.com/shopware/production
162-
- shopware-version: v6.4.11.1
163-
php-version: "8.0"
164-
flavour: alpine
165-
template: https://github.com/shopware/production
166-
- shopware-version: v6.4.12.0
167-
php-version: "8.0"
168-
flavour: alpine
169-
template: https://github.com/shopware/production
170-
- shopware-version: v6.4.13.0
171-
php-version: "8.0"
172-
flavour: alpine
173-
template: https://github.com/shopware/production
174-
- shopware-version: v6.4.14.0
175-
php-version: "8.0"
176-
flavour: alpine
177-
template: https://github.com/shopware/production
178-
- shopware-version: v6.4.15.1
179-
php-version: "8.0"
180-
flavour: alpine
181-
template: https://github.com/shopware/production
182-
- shopware-version: v6.4.16.1
183-
php-version: "8.0"
184-
flavour: alpine
185-
template: https://github.com/shopware/production
186-
- shopware-version: v6.4.17.1
187-
php-version: "8.1"
188-
flavour: alpine
189-
template: https://github.com/shopware/production
190-
- shopware-version: v6.4.18.1
191-
php-version: "8.1"
192-
flavour: alpine
193-
template: https://github.com/shopware/production
194-
- shopware-version: v6.4.19.0
195-
php-version: "8.1"
196-
flavour: alpine
197-
template: https://github.com/shopware/production
198-
- shopware-version: v6.4.20.0
199-
php-version: "8.1"
200-
flavour: alpine
201-
template: https://github.com/shopware/production
202-
- shopware-version: v6.5.0.0
203-
php-version: "8.1"
204-
flavour: alpine
205-
template: https://github.com/shopware/platform
206-
- shopware-version: 6.3
207-
php-version: "7.4"
208-
flavour: alpine
209-
template: https://github.com/shopware/production
210-
- shopware-version: 6.4
211-
php-version: "8.1"
212-
flavour: alpine
213-
template: https://github.com/shopware/platform
214-
- shopware-version: trunk
215-
php-version: "8.1"
216-
flavour: alpine
217-
template: https://github.com/shopware/platform
218-
- shopware-version: v6.3.0.2
219-
php-version: "7.4"
220-
flavour: bullseye
221-
template: https://github.com/shopware/production
222-
- shopware-version: v6.3.1.1
223-
php-version: "7.4"
224-
flavour: bullseye
225-
template: https://github.com/shopware/production
226-
- shopware-version: v6.3.2.1
227-
php-version: "7.4"
228-
flavour: bullseye
229-
template: https://github.com/shopware/production
230-
- shopware-version: v6.3.3.1
231-
php-version: "7.4"
232-
flavour: bullseye
233-
template: https://github.com/shopware/production
234-
- shopware-version: v6.3.4.1
235-
php-version: "7.4"
236-
flavour: bullseye
237-
template: https://github.com/shopware/production
238-
- shopware-version: v6.3.5.4
239-
php-version: "7.4"
240-
flavour: bullseye
241-
template: https://github.com/shopware/production
242-
- shopware-version: v6.4.0.0
243-
php-version: "7.4"
244-
flavour: bullseye
245-
template: https://github.com/shopware/production
246-
- shopware-version: v6.4.1.2
247-
php-version: "8.0"
248-
flavour: bullseye
249-
template: https://github.com/shopware/production
250-
- shopware-version: v6.4.2.1
251-
php-version: "8.0"
252-
flavour: bullseye
253-
template: https://github.com/shopware/production
254-
- shopware-version: v6.4.3.1
255-
php-version: "8.0"
256-
flavour: bullseye
257-
template: https://github.com/shopware/production
258-
- shopware-version: v6.4.4.1
259-
php-version: "8.0"
260-
flavour: bullseye
261-
template: https://github.com/shopware/production
262-
- shopware-version: v6.4.5.1
263-
php-version: "8.0"
264-
flavour: bullseye
265-
template: https://github.com/shopware/production
266-
- shopware-version: v6.4.6.1
267-
php-version: "8.0"
268-
flavour: bullseye
269-
template: https://github.com/shopware/production
270-
- shopware-version: v6.4.7.0
271-
php-version: "8.0"
272-
flavour: bullseye
273-
template: https://github.com/shopware/production
274-
- shopware-version: v6.4.8.2
275-
php-version: "8.0"
276-
flavour: bullseye
277-
template: https://github.com/shopware/production
278-
- shopware-version: v6.4.9.0
279-
php-version: "8.0"
280-
flavour: bullseye
281-
template: https://github.com/shopware/production
282-
- shopware-version: v6.4.10.0
283-
php-version: "8.0"
284-
flavour: bullseye
285-
template: https://github.com/shopware/production
286-
- shopware-version: v6.4.11.1
287-
php-version: "8.0"
288-
flavour: bullseye
289-
template: https://github.com/shopware/production
290-
- shopware-version: v6.4.12.0
291-
php-version: "8.0"
292-
flavour: bullseye
293-
template: https://github.com/shopware/production
294-
- shopware-version: v6.4.13.0
295-
php-version: "8.0"
296-
flavour: bullseye
297-
template: https://github.com/shopware/production
298-
- shopware-version: v6.4.14.0
299-
php-version: "8.0"
300-
flavour: bullseye
301-
template: https://github.com/shopware/production
302-
- shopware-version: v6.4.15.1
303-
php-version: "8.0"
304-
flavour: bullseye
305-
template: https://github.com/shopware/production
306-
- shopware-version: v6.4.16.1
307-
php-version: "8.0"
308-
flavour: bullseye
309-
template: https://github.com/shopware/production
310-
- shopware-version: v6.4.17.1
311-
php-version: "8.1"
312-
flavour: bullseye
313-
template: https://github.com/shopware/production
314-
- shopware-version: v6.4.18.1
315-
php-version: "8.1"
316-
flavour: bullseye
317-
template: https://github.com/shopware/production
318-
- shopware-version: v6.4.19.0
319-
php-version: "8.1"
320-
flavour: bullseye
321-
template: https://github.com/shopware/production
322-
- shopware-version: v6.4.20.0
323-
php-version: "8.1"
324-
flavour: bullseye
325-
template: https://github.com/shopware/production
326-
- shopware-version: v6.5.0.0
327-
php-version: "8.1"
328-
flavour: bullseye
329-
template: https://github.com/shopware/platform
330-
- shopware-version: 6.3
331-
php-version: "7.4"
332-
flavour: bullseye
333-
template: https://github.com/shopware/production
334-
- shopware-version: 6.4
335-
php-version: "8.1"
336-
flavour: bullseye
337-
template: https://github.com/shopware/platform
338-
- shopware-version: trunk
339-
php-version: "8.1"
340-
flavour: bullseye
341-
template: https://github.com/shopware/platform
342-
109+
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
343110
steps:
344111
- name: Clone
345112
uses: actions/checkout@v3
File renamed without changes.

0 commit comments

Comments
 (0)