Skip to content

Commit

Permalink
chore: automate helm versioning
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Nikolic <[email protected]>
  • Loading branch information
f1ko committed Mar 30, 2023
1 parent 5bda15b commit af8d8b7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Publish

on: [push]
on:
- push
- workflow_dispatch

jobs:
check-dockerhub-token:
Expand Down Expand Up @@ -172,10 +174,21 @@ jobs:
with:
version: v3.5.0

- name: Prepare version
run: |
export TAG=$(echo ${{ github.ref }} | cut -d '/' -f 3 - )
export VERSION=${TAG#v}
echo TAG=${TAG} >> $GITHUB_ENV
echo VERSION=${VERSION} >> $GITHUB_ENV
echo "TAG: ${TAG}"
echo "VERSION: ${VERSION}"
- name: Run chart-releaser
uses: stefanprodan/[email protected]
with:
token: "${{ secrets.GITHUB_TOKEN }}"
app_version: "${{env.TAG}}"
chart_version: "${{env.VERSION}}"

publish-untagged:
needs:
Expand Down
8 changes: 4 additions & 4 deletions charts/kubelet-csr-approver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: kubelet-csr-approver
description: Kubelet CSR Approver
type: application
version: 0.2.8
appVersion: v0.2.8
appVersion: v0.0.1-dummy
version: 0.0.1-dummy
maintainers:
- name: clementnuss
- name: treydock
- name: clementnuss
- name: f1ko

0 comments on commit af8d8b7

Please sign in to comment.