Skip to content

Update Dependencies #27

Update Dependencies

Update Dependencies #27

Workflow file for this run

env:
HELM_EXPERIMENTAL_OCI: 1 #enable OCI support
HELM_VERSION_TO_INSTALL: v3.12.3 # version of HELM to install
GCR_IMAGE: ghcr.io/${{ github.repository_owner }}/ctfd
on:
release:
types: [published]
jobs:
version:
name: publish gcr
runs-on: ubuntu-latest
environment: prod
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install helm
uses: Azure/setup-helm@v3
with:
# Version of helm
version: ${{ env.HELM_VERSION_TO_INSTALL }}
- name: Read Helm Chart
id: chart
uses: jacobtomlinson/gha-read-helm-chart@0.1.3
with:
path: ./
- name: Update dependency helm charts
run: |
helm dependency update
- name: Login to gcr using helm
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ env.GCR_IMAGE }} --username ${{ github.repository_owner }} --password-stdin
- name: Package helm chart
run: |
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 }}-${{ github.event.release.tag_name }}.tgz" oci://${{ env.GCR_IMAGE }}