Merge pull request #164 from apecloud/fix/update_version #185
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |