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'
|
description: 'Docker Image Tag'
|
||||||
required: true
|
required: true
|
||||||
default: 'dev'
|
default: 'dev'
|
||||||
|
platforms:
|
||||||
|
description: 'Build Platforms'
|
||||||
|
required: true
|
||||||
|
default: 'linux/amd64,linux/arm64'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
|
|
@ -27,7 +31,7 @@ jobs:
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: ${{ github.event.inputs.platforms }}
|
||||||
push: true
|
push: true
|
||||||
file: ./selfhosted.Dockerfile
|
file: ./selfhosted.Dockerfile
|
||||||
tags: 'keglin/pinchflat:${{ github.event.inputs.image_tag }}'
|
tags: 'keglin/pinchflat:${{ github.event.inputs.image_tag }}'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue