From 30bae19f1bb7a85c35882ac54384c8f34dcd975a Mon Sep 17 00:00:00 2001 From: smf Date: Tue, 12 Mar 2024 22:53:48 +0800 Subject: [PATCH] platforms --- .github/workflows/publish_docker.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index 8dedf01..3dd0466 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -25,8 +25,10 @@ on: required: false type: string default: 'ubuntu_act_on_20' - - + platforms: + required: false + type: string + default: 'linux/amd64,linux/arm64' jobs: publish-docker-image: @@ -82,9 +84,7 @@ jobs: version=${{ steps.meta.outputs.version }} context: ${{ inputs.docker_context }} file: ${{ inputs.dockerfile_path }} - platforms: | - linux/amd64 - linux/arm64 + platforms: ${{ inputs.platforms }} push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file