From f5e3c41ea24a00cd5678ab072ea94e418d919c61 Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Tue, 19 Nov 2024 11:10:51 +0800 Subject: [PATCH] fix: modify action Signed-off-by: Qi Zhang --- .github/workflows/release-v6-builder-runner.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-v6-builder-runner.yml b/.github/workflows/release-v6-builder-runner.yml index 580238d6c..129098aca 100644 --- a/.github/workflows/release-v6-builder-runner.yml +++ b/.github/workflows/release-v6-builder-runner.yml @@ -10,6 +10,15 @@ on: description: 'version' required: true default: 'stable' + platforms: + description: 'platforms' + required: true + default: 'linux/amd64' + type: choice + options: + - linux/amd64 + - linux/arm64 + - linux/amd64,linux/arm64 env: VERSION: ${{ github.event.inputs.version }} @@ -54,7 +63,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v6 with: - platforms: linux/amd64,linux/arm64 + platforms: ${{ github.event.inputs.platforms }} build-args: | RELEASE_DESC=${{ env.release_desc }} context: . @@ -103,7 +112,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v6 with: - platforms: linux/amd64,linux/arm64 + platforms: ${{ github.event.inputs.platforms }} build-args: | RELEASE_DESC=${{ env.release_desc }} context: .