Skip to content

release image 0.1.6 main #25

release image 0.1.6 main

release image 0.1.6 main #25

Workflow file for this run

name: Release Image
on:
workflow_dispatch:
inputs:
release_version:
description: 'The version of release image'
required: true
default: 'latest'
release:
types:
- published
env:
RELEASE_VERSION: ${{ github.ref_name }}
run-name: release image ${{ inputs.release_version }} ${{ github.ref_name }}
jobs:
release-version:
runs-on: ubuntu-latest
outputs:
release-version: ${{ steps.get_relese_version.outputs.release_version }}
steps:
- name: Get Release Version
id: get_relese_version
run: |
RELEASE_VERSION=${{ inputs.release_version }}
if [ -z "$RELEASE_VERSION" ]; then
RELEASE_VERSION=${{ env.RELEASE_VERSION }}
fi
echo release_version=$RELEASE_VERSION >> $GITHUB_OUTPUT
release-image:
needs: release-version
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
IMG: "apecloud/dbctl"
VERSION: "${{ needs.release-version.outputs.release-version }}"
GO_VERSION: "1.22"
DOCKERFILE_PATH: "./docker/Dockerfile"
APECD_REF: "v0.1.54"
secrets: inherit