Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use multi-arch building to have arm64 and amd64 images on docker hub #1009

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 23 additions & 11 deletions .github/workflows/readme-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,31 @@ jobs:
username: mlocati
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build docker image
if: env.VERSIONTAG_THIS != ''
run: >
docker build
--tag "mlocati/php-extension-installer:$VERSIONTAG_THIS"
--tag "mlocati/php-extension-installer:${VERSIONTAG_THIS%.*}"
--tag "mlocati/php-extension-installer:${VERSIONTAG_THIS%%.*}"
--tag mlocati/php-extension-installer:latest
.
name: Set up docker buildx
uses: docker/setup-buildx-action@v2
with:
install: true
-
name: Push docker image to Docker Hub
name: Build and push docker image
if: env.VERSIONTAG_THIS != ''
run: docker push --all-tags mlocati/php-extension-installer
uses: docker/build-push-action@v5
with:
push: true
tags: |
mlocati/php-extension-installer:$VERSIONTAG_THIS
mlocati/php-extension-installer:${VERSIONTAG_THIS%.*}
mlocati/php-extension-installer:${VERSIONTAG_THIS%%.*}
mlocati/php-extension-installer:latest
# Build for all platforms also supported by php images (https://hub.docker.com/_/php/tags)
platforms: |
linux/386
linux/amd64
linux/arm/v5
linux/arm/v7
linux/arm64/v8
linux/mips64le
linux/ppc64le
linux/s390x
-
name: Create release
if: env.VERSIONTAG_THIS != ''
Expand Down