Skip to content

Change to alpine 3.21 (#150) #37

Change to alpine 3.21 (#150)

Change to alpine 3.21 (#150) #37

Workflow file for this run

name: Build and publish packages
on:
push:
branches:
- main
env:
IMAGE: lorisleiva/laravel-docker
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- tag: "latest"
php: "8.4"
- tag: "stable"
php: "8.3"
- tag: "8.4"
php: "8.4"
- tag: "8.3"
php: "8.3"
- tag: "8.2"
php: "8.2"
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup QEMU for multi-platform builds
uses: docker/setup-qemu-action@v2
with:
platforms: linux/amd64,linux/arm64
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
push: true
context: ${{ matrix.php }}
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/${{ env.IMAGE }}:${{ matrix.tag }}
${{ env.IMAGE }}:${{ matrix.tag }}
cache-from: type=registry,ref=ghcr.io/${{ env.IMAGE }}:${{ matrix.tag }}
cache-to: type=inline