Skip to content

Commit

Permalink
chore: release kubeblocks dev (#5935)
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook authored Nov 27, 2023
1 parent 4a1c032 commit d71fc08
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ on:
description: 'The release version of image'
required: false
default: 'latest'
dockerfile:
description: 'release specify Dockerfile or empty to release all images'
required: false
default: ''
type: choice
options:
- ""
- Dockerfile
- Dockerfile-charts
- Dockerfile-dataprotection
- Dockerfile-datascript
- Dockerfile-dev
- Dockerfile-tools
release:
types:
- published
Expand Down Expand Up @@ -37,6 +50,7 @@ jobs:
echo release_version=$RELEASE_VERSION >> $GITHUB_OUTPUT
release-image:
if: ${{ inputs.dockerfile == '' || inputs.dockerfile == 'Dockerfile' }}
needs: release-version
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
Expand All @@ -49,6 +63,7 @@ jobs:
secrets: inherit

release-tools-image:
if: ${{ inputs.dockerfile == '' || inputs.dockerfile == 'Dockerfile-tools' }}
needs: release-version
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
Expand All @@ -61,6 +76,7 @@ jobs:
secrets: inherit

release-datascript-image:
if: ${{ inputs.dockerfile == '' || inputs.dockerfile == 'Dockerfile-datascript' }}
needs: release-version
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
Expand All @@ -71,6 +87,7 @@ jobs:
secrets: inherit

release-dataprotection-image:
if: ${{ inputs.dockerfile == '' || inputs.dockerfile == 'Dockerfile-dataprotection' }}
needs: release-version
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
Expand All @@ -80,6 +97,18 @@ jobs:
DOCKERFILE_PATH: "./docker/Dockerfile-dataprotection"
secrets: inherit

release-dev-image:
if: ${{ github.event_name == 'workflow_dispatch' && (inputs.dockerfile == '' || inputs.dockerfile == 'Dockerfile-dev') }}
needs: release-version
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
IMG: "apecloud/kubeblocks-dev"
VERSION: "${{ needs.release-version.outputs.release-version }}"
APECD_REF: "v0.1.24"
DOCKERFILE_PATH: "./docker/Dockerfile-dev"
CONTEXT: "./docker"
secrets: inherit

release-message:
runs-on: ubuntu-latest
needs: [ release-image, release-tools-image, release-datascript-image, release-dataprotection-image ]
Expand Down

0 comments on commit d71fc08

Please sign in to comment.