-
Notifications
You must be signed in to change notification settings - Fork 32
45 lines (39 loc) · 1.13 KB
/
base-docker.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
name: Update Base Docker Image
on:
workflow_dispatch:
push:
tags-ignore:
- "*"
paths:
- 'Dockerfile.base'
env:
DOCKER_BUILDKIT: 1
jobs:
build:
name: Build PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ "8.3", "8.2", "8.1"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Login into Github Docker Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
file: Dockerfile.base
platforms: linux/amd64,linux/arm64
tags: "ghcr.io/friendsofshopware/shopware-cli-base:${{ matrix.php-version }}"
build-args: |
PHP_VERSION=${{ matrix.php-version }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false