Skip to content

Commit

Permalink
try pushing chart
Browse files Browse the repository at this point in the history
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
  • Loading branch information
funkypenguin committed May 30, 2024
1 parent 11dab15 commit fec90ca
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 119 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/chart-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Charts: Release to GHCR OCI"

on:
push:
paths:
- Chart.yaml
workflow_dispatch:

permissions:
contents: read
packages: write

env:
HELM_VERSION: 3.11.2
CHARTS_SRC_DIR: "."
TARGET_REGISTRY: ghcr.io
TARGET_REPO: elfhosted/myprecious

jobs:
release-charts:
name: Release charts
runs-on: ubuntu-latest
steps:
- name: Checkout chart sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0

- name: Install Kubernetes tools
uses: yokawasa/action-setup-kube-tools@v0.9.3
with:
setup-tools: |
helm
yq
helm: "${{ env.HELM_VERSION }}"

- name: Log into helm repo
shell: bash
run: |
helm registry login ghcr.io/elfhosted/charts -u ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }}
- name: Package & Push Helm Charts
shell: bash
run: |
CHART_VERSION=$(yq e '.version' Chart.yaml)
helm package . --dependency-update --destination . --version "${CHART_VERSION}"
helm push myprecious-${CHART_VERSION}.tgz" oci://${{ env.TARGET_REGISTRY }}/${{ env.TARGET_REPO }}
67 changes: 0 additions & 67 deletions .github/workflows/charts-release-oci.yaml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/charts-release.yaml

This file was deleted.

0 comments on commit fec90ca

Please sign in to comment.