diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 32ff9df20a..a21b5d6428 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,6 +9,15 @@ on: type: string description: "Docker tag" required: false + + platforms: + type: choice + description: "Image architecture to build" + default: "linux/amd64,linux/arm64" + options: + - "linux/amd64,linux/arm64" + - "linux/amd64" + - "linux/arm64" release: types: - published @@ -79,7 +88,7 @@ jobs: with: context: . file: ./DOCKER/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: ${{ github.event.inputs.platforms }} target: base push: false cache-from: | @@ -95,7 +104,7 @@ jobs: with: context: . file: ./DOCKER/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: ${{ github.event.inputs.platforms }} push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }}