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 ee831bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ on:
options:
- ubuntu-latest
- self-hosted
chosen-platform:
required: true
type: choice
options:
- linux/amd64
- linux/arm64

jobs:
push_to_registries:
name: build the avatar-bot-builder docker image
runs-on: ${{ inputs.chosen-runner }}
runs-on: [linux, "${{ inputs.chosen-runner }}"]
permissions:
packages: write
contents: read
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 ee831bf

Please sign in to comment.