-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (54 loc) · 2.57 KB
/
setup-lastest-zip.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
on:
workflow_dispatch:
push:
schedule:
- cron:
'0 1 * * *'
jobs:
setup-shopware:
name: Setup Shopware
runs-on: ubuntu-latest
strategy:
matrix:
versions:
- shopware: '5.7'
php: '7.4'
mysql: '8.0'
consentManager: 'none'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: current
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Install dependencies
run: npm install
- name: Create base image
run: make running:shopware_${{ matrix.versions.shopware }}_${{ matrix.versions.mysql }}_${{ matrix.versions.php }}
- name: Push base image
if: ${{ github.ref == 'refs/heads/main' }}
run: docker push ghcr.io/shopware5/docker-images-testing/running:shopware_${{ matrix.versions.shopware }}_${{ matrix.versions.mysql }}_${{ matrix.versions.php }}
- name: Download latest Shopware
id: download-artifact
uses: dawidd6/action-download-artifact@v7
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: create-release.yml
workflow_conclusion: success
branch: 5.7
repo: shopware5/shopware
- name: Unzip artifacts
run: |
cd artifact && mv install*.zip ../shopware.zip
- name: Create lastest Image
run: make latest:shopware_${{ matrix.versions.shopware }}_${{ matrix.versions.mysql }}_${{ matrix.versions.php }}_${{ matrix.versions.consentManager }}
- name: Test zip Image
run: make test-latest:shopware_${{ matrix.versions.shopware }}_${{ matrix.versions.mysql }}_${{ matrix.versions.php }}_${{ matrix.versions.consentManager }}
- name: Push zip Image
if: ${{ github.ref == 'refs/heads/main' }}
run: docker push ghcr.io/shopware5/docker-images-testing/latest:shopware_${{ matrix.versions.shopware }}_${{ matrix.versions.mysql }}_${{ matrix.versions.php }}_${{ matrix.versions.consentManager }}