fix: update action file

Signed-off-by: Qi Zhang <smallqi1@163.com>
This commit is contained in:
Qi Zhang 2024-10-15 19:54:31 +08:00 committed by GitHub
parent e6441ff5c5
commit 498c5b241c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: 'build-who'
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 }}