Skip to content

Commit

Permalink
Merge pull request #39 from bman46/release-version
Browse files Browse the repository at this point in the history
Set helm version from github release
  • Loading branch information
bman46 authored Aug 31, 2023
2 parents 89c5d0a + 1e85296 commit 11d3c97
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
env:
HELM_EXPERIMENTAL_OCI: 1 #enable OCI support
HELM_VERSION_TO_INSTALL: 3.9.0 # version of HEL to install
HELM_VERSION_TO_INSTALL: v3.12.3 # version of HELM to install
GCR_IMAGE: ghcr.io/${{ github.repository_owner }}/ctfd

on:
release:
types: [published]
workflow_dispatch:

jobs:
version:
Expand Down Expand Up @@ -39,8 +38,8 @@ jobs:
- name: Package helm chart
run: |
helm package "${{ github.workspace }}/" --destination "${{ github.workspace }}/"
helm package "${{ github.workspace }}/" --destination "${{ github.workspace }}/" --version "${{ github.event.release.tag_name }}""
- name: Publish chart to gcr
run: |
helm push "${{ github.workspace }}/${{ steps.chart.outputs.name }}-${{ steps.chart.outputs.version }}.tgz" oci://${{ env.GCR_IMAGE }}
helm push "${{ github.workspace }}/${{ steps.chart.outputs.name }}-${{ github.event.release.tag_name }}.tgz" oci://${{ env.GCR_IMAGE }}

0 comments on commit 11d3c97

Please sign in to comment.