mirror of
https://github.com/docker/setup-qemu-action.git
synced 2024-11-15 17:33:50 +08:00
Trim off spaces in platform
string
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>
This commit is contained in:
parent
e81a89b173
commit
084b720a90
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -8,6 +8,11 @@ export interface Inputs {
|
||||
export function getInputs(): Inputs {
|
||||
return {
|
||||
image: core.getInput('image') || 'tonistiigi/binfmt:latest',
|
||||
platforms: core.getInput('platforms') || 'all'
|
||||
platforms:
|
||||
core
|
||||
.getInput('platforms')
|
||||
.split(',')
|
||||
.map(v => v.trim())
|
||||
.join(',') || 'all'
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user