Skip to content

Commit

Permalink
chore: add release chart workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook committed Nov 7, 2023
1 parent 3d0655d commit b39b2c2
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @nayutah @ldming
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: kind/bug
assignees: nayutah

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Feature request
about: Suggest a user related feature for this project
title: "[Features]"
labels: area/user-interaction, documentation, kind/feature
assignees: nayutah

---

**What is the user interaction of your feature**
A concise description of user interactions or user stories of your feature request

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**If this is a new feature, please describe the motivation and goals.**
A clear and concise description of why you want to happen, link the design doc if possible

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/improvement-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Improvement request
about: Suggest an improvement idea for this project
title: "[Improvement]"
labels: kind/enhancement
assignees: nayutah

---

Is your improvement request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

If this is a new function, please describe the motivation and goals.
A clear and concise description of why you want to happen, link the design doc if possible

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or functions you've considered.

Additional context
Add any other context or screenshots about the improvement request here.
20 changes: 20 additions & 0 deletions .github/workflows/cicd-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CICD-PUSH

on:
push:
# paths:
# - "addons/**"
branches:
- '*'
- '*/*'
tags-ignore:
- '*'

jobs:
check-helm:
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
VERSION: "v0.7.0-check"
CHART_DIR: "addons"
APECD_REF: "v0.1.38"
secrets: inherit
41 changes: 41 additions & 0 deletions .github/workflows/release-chart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: RELEASE-CHART

on:
workflow_dispatch:
inputs:
chart_version:
description: 'The version of helm chart'
required: true
default: ''
release:
types:
- published

env:
GH_TOKEN: ${{ github.token }}
RELEASE_VERSION: ${{ github.ref_name }}


jobs:
chart-version:
runs-on: ubuntu-latest
outputs:
chart-version: ${{ steps.get_version.outputs.chart_version }}
steps:
- name: Get Chart Version
id: get_version
run: |
VERSION=${{ inputs.chart_version }}
if [ -z "$VERSION" ]; then
VERSION=${{ env.RELEASE_VERSION }}
fi
echo chart_version=$VERSION >> $GITHUB_OUTPUT
release-chart:
needs: chart-version
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
VERSION: "${{ needs.chart-version.outputs.chart-version }}"
CHART_DIR: "addons"
APECD_REF: "v0.1.38"
secrets: inherit

0 comments on commit b39b2c2

Please sign in to comment.