feat(labels): add part-of selector label (#211) #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push Helm Chart to OCI Registry | |
concurrency: | |
group: ci-${{ github.run_id }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
- v[0-9]+ | |
- v[0-9]+.[0-9]+ | |
- cryostat-v[0-9]+.[0-9]+ | |
workflow_dispatch: | |
jobs: | |
helm-push-to-OCI: | |
permissions: | |
packages: write | |
contents: write | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'cryostatio' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Set up Helm | |
uses: azure/setup-helm@v4 | |
with: | |
version: v3.14.4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GH_PKGS_WRITE }} | |
- name: Patch chart name | |
run: yq -i ".name = \"${{ github.event.repository.name }}\"" ./charts/*/Chart.yaml | |
- name: Package charts | |
run: helm package ./charts/* | |
- name: Push charts to GHCR | |
run: | | |
for pkg in ./*.tgz; do | |
if [ -z "${pkg:-}" ]; then | |
break | |
fi | |
helm push "${pkg}" oci://ghcr.io/${{ github.repository_owner }} | |
done |