Skip to content
Merged
Show file tree
Hide file tree
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
26 changes: 26 additions & 0 deletions .github/workflows/cd-helm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
packages: write
id-token: write
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand All @@ -33,7 +35,31 @@ jobs:
version: v3.14.3

- name: Run chart-releaser for generic-device-plugin
id: cr
uses: helm/chart-releaser-action@v1.6.0
env:
CR_GENERATE_RELEASE_NOTES: true
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Login to GHCR
if: steps.cr.outputs.changed_charts != ''
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push chart to OCI registry
if: steps.cr.outputs.changed_charts != ''
run: helm push .cr-release-packages/*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts

- name: Install Cosign
if: steps.cr.outputs.changed_charts != ''
uses: sigstore/cosign-installer@v4.1.2

- name: Sign chart
if: steps.cr.outputs.changed_charts != ''
run: |
ref=ghcr.io/${{ github.repository_owner }}/charts/generic-device-plugin
digest=$(docker buildx imagetools inspect "${ref}:${{ steps.cr.outputs.chart_version }}" --format '{{.Manifest.Digest}}')
cosign sign --yes "${ref}@${digest}"
2 changes: 1 addition & 1 deletion charts/generic-device-plugin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1
Comment thread
aclerici38 marked this conversation as resolved.
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
2 changes: 1 addition & 1 deletion charts/generic-device-plugin/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generic-device-plugin

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.0](https://img.shields.io/badge/AppVersion-0.2.0-informational?style=flat-square)
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.0](https://img.shields.io/badge/AppVersion-0.2.0-informational?style=flat-square)

A Helm chart for deploying the generic-device-plugin on Kubernetes

Expand Down
Loading