Adds platform option when building docker containers
This commit is contained in:
parent
45f056c6e0
commit
87da716fdf
1 changed files with 5 additions and 1 deletions
6
.github/workflows/build_and_push_docker.yml
vendored
6
.github/workflows/build_and_push_docker.yml
vendored
|
|
@ -7,6 +7,10 @@ on:
|
|||
description: 'Docker Image Tag'
|
||||
required: true
|
||||
default: 'dev'
|
||||
platforms:
|
||||
description: 'Build Platforms'
|
||||
required: true
|
||||
default: 'linux/amd64,linux/arm64'
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
|
|
@ -27,7 +31,7 @@ jobs:
|
|||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: ${{ github.event.inputs.platforms }}
|
||||
push: true
|
||||
file: ./selfhosted.Dockerfile
|
||||
tags: 'keglin/pinchflat:${{ github.event.inputs.image_tag }}'
|
||||
|
|
|
|||
Loading…
Reference in a new issue