Add php8.3 #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build php-80 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 80 ${{ 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 80 |