Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.

✨ Build image for multiple architectures #11

Merged
merged 2 commits into from
Apr 4, 2021
Merged

Conversation

shrink
Copy link
Owner

@shrink shrink commented Apr 4, 2021

Adds linux/arm64 (along with the default linux/amd64) to platforms that the image is built for, with opportunity to add more in future using the Build Image step platforms parameter.

- name: Build Image
uses: docker/build-push-action@v2
with:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
build-args: PHP=${{ matrix.php }}
push: true
tags: ghcr.io/${{ github.repository }}:${{ steps.push.outputs.sha }}
labels: |
org.opencontainers.image.title=${{ github.repository }}
org.opencontainers.image.url=${{ github.event.repository.html_url }}
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.created=${{ steps.push.outputs.at }}
org.opencontainers.image.revision=${{ steps.push.outputs.sha }}

@shrink shrink self-assigned this Apr 4, 2021
@shrink shrink merged commit 37b3cf1 into main Apr 4, 2021
@shrink shrink deleted the multiple-architectures branch April 4, 2021 19:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant