Skip to content

chore(deps-dev): update actions/setup-go action to v4.1.0 (#37) #44

chore(deps-dev): update actions/setup-go action to v4.1.0 (#37)

chore(deps-dev): update actions/setup-go action to v4.1.0 (#37) #44

name: release-chart
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 #v3.5
- name: Login to Github Container Registry using helm
run: echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io --username ${{ github.actor }} --password-stdin
- name: Package helm charts
run: |
helm package chart/k8svault-controller -d chart
- name: Publish helm charts to Github Container Registry
run: |
repository=$(echo "${{ github.repository_owner }}" | tr [:upper:] [:lower:])
helm push ${{ github.workspace }}/chart/k8svault-controller-*.tgz oci://ghcr.io/$repository/charts