Skip to content

Commit

Permalink
chore: add chosen-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
nanpuyue committed Sep 20, 2023
1 parent d3e327c commit 895ac9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
options:
- ubuntu-latest
- self-hosted
chosen-platform:
required: true
type: choice
options:
- linux/amd64
- linux/arm64

jobs:
push_to_registries:
Expand Down Expand Up @@ -49,6 +55,6 @@ jobs:
with:
context: builder
push: true
platforms: linux/amd64, linux/arm64
platforms: ${{ inputs.chosen-platform }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 895ac9c

Please sign in to comment.