Trim off spaces in platform string#64
Conversation
crazy-max
left a comment
There was a problem hiding this comment.
Generated files don't look good, what command did you use? docker buildx bake pre-checkin should fix it.
This allows users to specify platform in a more humane way, for example:
```yaml
env:
# equals to `linux/amd64, linux/arm/v6`
platforms: >
linux/amd64,
linux/arm/v6
- uses: docker/setup-qemu-action@v2
with:
platforms: ${{ env.PLATFORMS }}
```
Signed-off-by: Chocobo1 <Chocobo1@users.noreply.github.com>
I just ran
Thanks, done. Hope it is alright now. |
There was a problem hiding this comment.
LGTM, also platforms you defined in your example will not work. Should be one of these archs: https://github.com/tonistiigi/binfmt/blob/9977509979cd64fea6e1097c9fc096702191c2f3/cmd/binfmt/config.go#L22-L68. Maybe we could be smart enough in binfmt and translate those.
Nevermind we already do this so your example is good: https://github.com/tonistiigi/binfmt/blob/9977509979cd64fea6e1097c9fc096702191c2f3/cmd/binfmt/main.go#L153
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | minor | `v2.1.0` -> `v2.2.0` | --- ### Release Notes <details> <summary>docker/setup-qemu-action</summary> ### [`v2.2.0`](https://togithub.com/docker/setup-qemu-action/releases/tag/v2.2.0) [Compare Source](https://togithub.com/docker/setup-qemu-action/compare/v2.1.0...v2.2.0) #### What's Changed - Trim off spaces in `platforms` input by [@​Chocobo1](https://togithub.com/Chocobo1) in [https://github.com/docker/setup-qemu-action/pull/64](https://togithub.com/docker/setup-qemu-action/pull/64) - Switch to actions-toolkit implementation by [@​crazy-max](https://togithub.com/crazy-max) in [https://github.com/docker/setup-qemu-action/pull/70](https://togithub.com/docker/setup-qemu-action/pull/70) [https://github.com/docker/setup-qemu-action/pull/80](https://togithub.com/docker/setup-qemu-action/pull/80) [https://github.com/docker/setup-qemu-action/pull/83](https://togithub.com/docker/setup-qemu-action/pull/83) #### New Contributors - [@​Chocobo1](https://togithub.com/Chocobo1) made their first contribution in [https://github.com/docker/setup-qemu-action/pull/64](https://togithub.com/docker/setup-qemu-action/pull/64) **Full Changelog**: docker/setup-qemu-action@v2.1.0...v2.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/scottames/dots). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This allows users to specify platform in a more humane way, for example:
Signed-off-by: Chocobo1 Chocobo1@users.noreply.github.com