Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim off spaces in platform string #64

Merged
merged 1 commit into from Nov 25, 2022
Merged

Conversation

Chocobo1
Copy link
Contributor

This allows users to specify platform in a more humane way, for example:

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

Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@Chocobo1
Copy link
Contributor Author

Generated files don't look good, what command did you use?

I just ran npm run build and committed the relevant files.

docker buildx bake pre-checkin should fix it.

Thanks, done. Hope it is alright now.

Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@crazy-max crazy-max merged commit 38836d3 into docker:master Nov 25, 2022
@Chocobo1 Chocobo1 deleted the space branch November 25, 2022 12:48
scottames pushed a commit to scottames/dots that referenced this pull request Jun 13, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](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
[@&#8203;Chocobo1](https://togithub.com/Chocobo1) in
[docker/setup-qemu-action#64
- Switch to actions-toolkit implementation by
[@&#8203;crazy-max](https://togithub.com/crazy-max) in
[docker/setup-qemu-action#70
[docker/setup-qemu-action#80
[docker/setup-qemu-action#83

#### New Contributors

- [@&#8203;Chocobo1](https://togithub.com/Chocobo1) made their first
contribution in
[docker/setup-qemu-action#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants