Skip to content

Improve Outline chart (#8) #11

Improve Outline chart (#8)

Improve Outline chart (#8) #11

Workflow file for this run

---
name: Release Charts
on:
push:
branches: [main]
paths:
- charts/**
workflow_dispatch:
permissions: read-all
jobs:
release:
name: Release Charts
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_GENERATE_RELEASE_NOTES: true
CR_SKIP_EXISTING: true
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Chart to GHCR
run: |
shopt -s nullglob
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" oci://ghcr.io/${GITHUB_REPOSITORY@L}
done