Skip to content

Commit

Permalink
add chart publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf Grubenmann committed Jan 5, 2024
1 parent 18b7ea6 commit 89553a8
Show file tree
Hide file tree
Showing 15 changed files with 51 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish-chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish chart
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
publish-chart:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
- uses: azure/setup-helm@v3
with:
token: ${{secrets.GITHUB_TOKEN }}
- name: install dependencies
run: pip install chartpress
- name: Publish chart and images
env:
DOCKER_USERNAME: ${{ secrets.RENKU_DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.RENKU_DOCKER_PASSWORD }}
run: |
cd deploy
git config --global user.email "[email protected]"
git config --global user.name "Renku Bot"
echo ${DOCKER_PASSWORD}|docker login -u ${DOCKER_USERNAME} --password-stdin
export TAG=${echo ${GITHUB_REF} |cut -d/ -f3}
helm dep update csi-rclone
chartpress --tag $TAG
helm lint csi-rclone
chartpress --tag $TAG --push --publish-chart
chartpress --tag latest --push
14 changes: 14 additions & 0 deletions deploy/chartpress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
charts:
- name: csi-rclone
imagePrefix: renku/
resetTag: ""
resetVersion: 0.1.0
repo:
git: SwissDataScienceCenter/helm-charts
published: https://swissdatasciencecenter.github.io/helm-charts
images:
csi-rclone:
contextPath: ../
dockerFilePath: ../Dockerfile
valuesPath:
- image
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions devenv/nix/scripts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ let
kind load docker-image csi-rclone:latest --name csi-rclone-k8s
echo "Render helm chart with new container version"
helm template -n csi-rclone csi-rclone deploy/chart > devenv/kind/deploy-kind/csi-rclone-templated-chart.yaml
helm template -n csi-rclone csi-rclone deploy/csi-rclone > devenv/kind/deploy-kind/csi-rclone-templated-chart.yaml
# TODO: use tee
Expand Down Expand Up @@ -80,4 +80,4 @@ let
in
{
inherit initKindCluster deleteKindCluster getKindKubeconfig localDeployScript reloadScript;
}
}

0 comments on commit 89553a8

Please sign in to comment.