Add platform arg to build step (#12) #5
Workflow file for this run
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: "Release" | |
on: | |
push: | |
tags: | |
- "*" | |
env: | |
REGISTRY: "ghcr.io" | |
IMAGE_NAME: "authzed/spicedb-playground" | |
jobs: | |
build-and-push-image: | |
runs-on: "buildjet-4vcpu-ubuntu-2204" | |
permissions: | |
contents: "write" | |
packages: "write" | |
steps: | |
- uses: "actions/checkout@v4" | |
with: | |
lfs: "true" | |
submodules: "recursive" | |
- name: "Set up QEMU" | |
uses: "docker/setup-qemu-action@v3" | |
- name: "Set up Docker Buildx" | |
uses: "docker/setup-buildx-action@v3" | |
with: | |
platforms: linux/amd64,linux/arm64,linux/arm/v8 | |
- name: "Log in to container registry" | |
uses: "docker/[email protected]" | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Extract metadata (tags, labels) for Docker" | |
id: meta | |
uses: "docker/[email protected]" | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
tags: | | |
type=semver,pattern={{raw}} | |
- name: "Build and push Docker image" | |
uses: "docker/[email protected]" | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64,linux/arm/v8 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |