-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.15 KB
/
release-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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