-
Notifications
You must be signed in to change notification settings - Fork 47
53 lines (52 loc) · 1.35 KB
/
base-docker.yml
File metadata and controls
53 lines (52 loc) · 1.35 KB
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
name: Update Base Docker Image
on:
workflow_dispatch:
push:
tags-ignore:
- "*"
branches:
- main
paths:
- 'Dockerfile.base'
- 'internal/verifier/js/**'
- 'internal/verifier/php/**'
pull_request:
paths:
- 'Dockerfile.base'
- 'internal/verifier/js/**'
- 'internal/verifier/php/**'
permissions:
contents: read
id-token: write
packages: write
jobs:
build:
name: Build PHP ${{ matrix.php-version }}
strategy:
matrix:
php-version: ["8.5", "8.4", "8.3", "8.2"]
uses: docker/github-builder/.github/workflows/build.yml@2497a7d1e7d8683af4949c9d6d62012bc16ed59c # ratchet:docker/github-builder/.github/workflows/build.yml@v1
permissions:
contents: read
id-token: write
packages: write
with:
output: image
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64
file: Dockerfile.base
build-args: |
PHP_VERSION=${{ matrix.php-version }}
meta-images: |
ghcr.io/shopware/shopware-cli-base
meta-tags: |
type=raw,value=${{ matrix.php-version }}
meta-flavor: |
latest=false
cache: true
cache-mode: max
secrets:
registry-auths: |
- registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}