From 55e7f84b0b265b1e29e358c4f8b5cc643ec82814 Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Tue, 15 Oct 2024 20:02:01 +0800 Subject: [PATCH] fix: update action file Signed-off-by: Qi Zhang --- .github/workflows/release-v6.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-v6.yml b/.github/workflows/release-v6.yml index 6533d5366..2c3ed5320 100644 --- a/.github/workflows/release-v6.yml +++ b/.github/workflows/release-v6.yml @@ -9,7 +9,7 @@ on: version: description: 'version' required: true - default: 'V6.0-dev' + default: 'v6.0-dev' build-who: description: 'build-who' required: true @@ -20,6 +20,14 @@ on: - operator - region - console + platforms: + description: 'platforms' + required: true + default: 'linux/amd64' + type: choice + options: + - linux/amd64 + - linux/amd64,linux/arm64 env: VERSION: ${{ github.event.inputs.version }} @@ -67,15 +75,15 @@ 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: . file: hack/contrib/docker/${{ matrix.component }}/Dockerfile push: true tags: | - rainbond/${{ matrix.component }}:${{ env.VERSION }} - registry.cn-hangzhou.aliyuncs.com/goodrain/${{ matrix.component }}:${{ env.VERSION }} + rainbond/rbd-${{ matrix.component }}:${{ env.VERSION }} + registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-${{ matrix.component }}:${{ env.VERSION }} rainbond-operator: runs-on: ubuntu-latest @@ -110,7 +118,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v6 with: - platforms: linux/amd64,linux/arm64 + platforms: ${{ github.event.inputs.platforms }} context: . file: ./Dockerfile push: true @@ -144,7 +152,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v6 with: - platforms: linux/amd64,linux/arm64 + platforms: ${{ github.event.inputs.platforms }} context: . file: ./Dockerfile push: true @@ -192,7 +200,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 }} VERSION=${{ env.VERSION }}