Skip to content

chore: add KB 1.0.1 test reports (#142) #166

chore: add KB 1.0.1 test reports (#142)

chore: add KB 1.0.1 test reports (#142) #166

Workflow file for this run

name: Release Image
on:
push:
branches:
- main
paths-ignore:
- '.github/**'
workflow_dispatch:
inputs:
image_tag:
description: 'The tag name of image'
required: true
default: 'latest'
release:
types:
- published
env:
RELEASE_VERSION: ${{ github.ref_name }}
jobs:
image-tag:
runs-on: ubuntu-latest
outputs:
tag-name: ${{ steps.get_tag_name.outputs.tag_name }}
steps:
- name: Get Tag Name
id: get_tag_name
run: |
TAG_NAME=${{ inputs.image_tag }}
if [ -z "$TAG_NAME" ]; then
TAG_NAME=${{ env.RELEASE_VERSION }}
fi
echo tag_name=$TAG_NAME >> $GITHUB_OUTPUT
release-image:
needs: image-tag
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
MAKE_OPS: "docker-build"
IMG: "apecloud/kubeblocks-docs"
VERSION: "${{ needs.image-tag.outputs.tag-name }}"
NODE_VERSION: "20"
REMOVE_PREFIX: false
secrets: inherit
deploy:
needs: [ release-image ]
uses: ./.github/workflows/deploy.yml
secrets: inherit