Skip to content

Commit

Permalink
publish docker images to platforms: linux/amd64 and linux/arm64
Browse files Browse the repository at this point in the history
This is useful for user trying out a local run of this docker image on a Mac. Today. this would return a Docker error on M1 Mac.
```
~ docker run --rm -it docker.io/cloudflare/hello-world:1.0

Unable to find image 'cloudflare/hello-world:1.0' locally
1.0: Pulling from cloudflare/hello-world
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
See 'docker run --help'.
```
  • Loading branch information
skepticfx authored and gpanders committed Jan 21, 2025
1 parent 17afc1e commit f358d57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ jobs:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit f358d57

Please sign in to comment.