Skip to content

RELEASE-IMAGE

RELEASE-IMAGE #46

Workflow file for this run

name: RELEASE-IMAGE
on:
workflow_dispatch:
inputs:
image_tag:
description: 'The tag name of image'
required: true
default: ''
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-buildx"
IMG: "apecloud/kubebench"
VERSION: "${{ needs.image-tag.outputs.tag-name }}"
GO_VERSION: "1.20"
secrets: inherit