Skip to content

Commit

Permalink
refactor: seperate ci job 'release-charts-to-s3' and remove '--devel' (
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 authored Oct 23, 2023
1 parent ec98564 commit 8d9cdaa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .github/scripts/release-charts-to-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ function release_charts_to_s3() {
mkdir "$chart"
echo "Pulling chart from '$repo/$chart'..."

if [ "$repo" = "greptime" ]; then
# Add '-l devel' to pull the latest development version of greptime.
helm pull "$repo"/"$chart" -d "$chart" --devel
else
helm pull "$repo"/"$chart" -d "$chart"
fi
helm pull "$repo"/"$chart" -d "$chart"

package=$(ls ./"$chart")

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Testing add greptime helm repo
run: |
helm repo add greptime https://greptimeteam.github.io/helm-charts/
helm search repo greptime --devel
helm search repo greptime
- uses: actions/setup-python@v4
with:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ jobs:
CR_SKIP_EXISTING: true
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

release-charts-to-s3:
needs: [
release,
]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
Expand Down

0 comments on commit 8d9cdaa

Please sign in to comment.