Skip to content

Commit

Permalink
ci: add github workflow of chart release (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviderli614 authored Oct 28, 2022
1 parent 2191635 commit 9b032ee
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: ci
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build image
name: Release
on:
push:
tags:
Expand Down Expand Up @@ -42,3 +42,25 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Package Charts
run: |
helm package ./charts/greptimedb-operator
helm package ./charts/greptimedb
- name: Release Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Upload Release Asset
uses: ncipollo/release-action@v1
with:
artifacts: |
greptimedb-${{ env.RELEASE_VERSION }}.tgz
greptimedb-operator-${{ env.RELEASE_VERSION }}.tgz
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions charts/greptimedb-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
kubeVersion: ">=1.19.0-0"
description: The greptimedb-operator Helm chart for Kubernetes
name: greptimedb-operator
appVersion: 0.1.0
appVersion: v0.1.0-alpha.1
type: application
home: https://github.com/GreptimeTeam/greptimedb-operator
sources:
Expand All @@ -16,4 +16,4 @@ maintainers:
email: [email protected]
- name: zyy17
email: [email protected]
version: 0.1.0
version: v0.1.0-alpha.1
2 changes: 1 addition & 1 deletion charts/greptimedb/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dependencies:
repository: file://../etcd
version: 0.1.0
digest: sha256:c5db9bff53b3532a78b8d8de82449a632d6cf3168c8e1591a5ed426799db8388
generated: "2022-09-26T17:29:04.682941+08:00"
generated: "2022-10-28T19:08:12.686621+08:00"
4 changes: 2 additions & 2 deletions charts/greptimedb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: greptimedb
description: A Helm chart for deploying GreptimeDB cluster in Kubernetes
type: application
version: 0.1.0
appVersion: 0.1.0
version: v0.1.0-alpha.1
appVersion: v0.1.0-alpha.1
dependencies:
- name: etcd
version: "0.1.0"
Expand Down
Binary file modified charts/greptimedb/charts/etcd-0.1.0.tgz
Binary file not shown.

0 comments on commit 9b032ee

Please sign in to comment.