Skip to content

Update Base Docker Image #64

Update Base Docker Image

Update Base Docker Image #64

Workflow file for this run

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@v5
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