Skip to content

Merge pull request #18 from mbutkereit/update-bookworm #11

Merge pull request #18 from mbutkereit/update-bookworm

Merge pull request #18 from mbutkereit/update-bookworm #11

name: Build php-81 docker images multi-arch
on:
push:
branches:
- multi-arch
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get branch names
id: branch-name
uses: tj-actions/branch-names@v5
- name: checkout code
uses: actions/checkout@v2
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: create --use
run: docker buildx create --use
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: buildx ls
run: docker buildx ls
- name: build the branch-specific images for amd64/arm64
if: steps.branch-name.outputs.current_branch != 'master'
run: ./build.sh both 81 ${{ steps.branch-name.outputs.current_branch }}
- name: build the main images for amd64/arm64
if: steps.branch-name.outputs.current_branch == 'master'
run: ./build.sh both 81