Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: publish-ext-blockfrost-operator-helm-chart

on:
push:
branches: ['main']
paths:
[
'charts/ext-blockfrost-operator/**',
'.github/workflows/publish-ext-blockfrost-operator-helm-chart.yml',
]

jobs:
build-and-push-ext-blockfrost-operator-helm-chart:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Helm
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
- name: Package and upload chart
shell: bash
env:
REGISTRY: 'ghcr.io'
REPOSITORY: '${{ github.repository }}'
TOKEN: '${{ secrets.GITHUB_TOKEN }}'
USER: '${{ github.repository_owner }}'
run: |
rm -rf dist
mkdir dist
helm package charts/ext-blockfrost-operator/ -d dist/
echo "${TOKEN}" | helm registry login "${REGISTRY}" -u "${USER}" --password-stdin
for file in dist/*; do
helm push "$file" "oci://${REGISTRY}/${REPOSITORY,,}/charts"
done
Loading