Files
versitygw/.github/workflows/helm-chart.yml
T

44 lines
1.2 KiB
YAML

name: Release Helm Chart
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
# https://github.com/marketplace/actions/helm-oci-charts-releaser
- name: Run chart-releaser
id: releaser
uses: bitdeps/helm-oci-charts-releaser@v0.1.5
with:
oci_registry: ghcr.io/versity/versitygw/charts
oci_username: versity
oci_password: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
charts_dir: "."
- name: Install cosign
if: steps.releaser.outputs.changed_charts != ''
uses: sigstore/cosign-installer@v4.0.0
- name: Sign chart with cosign
if: steps.releaser.outputs.changed_charts != ''
run: cosign sign --yes ghcr.io/versity/versitygw/charts/versitygw:${{ steps.releaser.outputs.chart_version }}