Skip to content

Update Base Docker Image #44

Update Base Docker Image

Update Base Docker Image #44

Workflow file for this run

name: Update Base Docker Image
on:
workflow_dispatch:
push:
tags-ignore:
- "*"
paths:
- 'Dockerfile.base'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ["8.2", "8.1", "7.4", "7.2"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- 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@v2
- name: Build and push
uses: docker/build-push-action@v4
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