added composer, git #95
This file contains hidden or 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: multi-arch docker build using qemu | |
on: | |
push: | |
branches: focal | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
- name: set up qemu for linux/arm64 | |
uses: docker/setup-qemu-action@v3 | |
- name: install buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: login to docker hub | |
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | |
- name: build multi-arch image and push to docker hub | |
run: | | |
docker buildx build --push \ | |
--tag rsubr/php-apache-ubuntu:latest \ | |
--tag rsubr/php-apache-ubuntu:focal \ | |
--tag rsubr/php-apache-ubuntu:20.04 \ | |
--platform linux/amd64,linux/arm64 . |