ci: Add platform input for custom action workflow (#1437)
This commit is contained in:
11
.github/workflows/publish-custom.yml
vendored
11
.github/workflows/publish-custom.yml
vendored
@@ -5,6 +5,15 @@ on:
|
|||||||
inputs:
|
inputs:
|
||||||
tag:
|
tag:
|
||||||
description: Custom tag to publish
|
description: Custom tag to publish
|
||||||
|
platforms:
|
||||||
|
description: Platforms to publish to (comma separated list)
|
||||||
|
default: linux/amd64
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- linux/amd64
|
||||||
|
- linux/arm/v7
|
||||||
|
- linux/arm64
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-custom:
|
publish-custom:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -33,7 +42,7 @@ jobs:
|
|||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64
|
platforms: ${{ inputs.platforms }}
|
||||||
pull: true
|
pull: true
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
Reference in New Issue
Block a user