-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.13 KB
/
build-shopware.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
name: 'Build shopware images'
on:
workflow_dispatch:
permissions:
contents: read
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
prepare-php:
uses: ./.github/workflows/--prepare-php.yml
secrets: inherit
with:
min-version: '8.1'
build:
runs-on: ubuntu-22.04
needs:
- prepare-php
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2']
sw: ['6.5.0.0']
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/login-ghcr
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ./.github/actions/build-push
with:
registry: ghcr.io
cache-mode: 'min'
context: images/shopware
image: myparcelnl/shopware
suffix: ${{ matrix.sw }}-php${{ matrix.php }}
build-args: |
PHP_VERSION=${{ matrix.php }}
SW_VERSION=${{ matrix.sw }}
notify-on-failure:
needs:
- build
if: always() && contains(needs.*.result, 'failure')
uses: myparcelnl/actions/.github/workflows/notify-on-failure.yml@v4
secrets: inherit