-
Notifications
You must be signed in to change notification settings - Fork 3
feat(ci): tie chart releases to app releases #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,15 +28,15 @@ jobs: | |
| chart_version: ${{ steps.prepare.outputs.chart_version }} | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
|
|
||
| - name: Prepare versions and chart name | ||
| id: prepare | ||
| run: | | ||
| set -euo pipefail | ||
| APP_VERSION=$(echo ${{ github.ref_name }} | sed 's/v//g') | ||
| CHART_NAME="$(yq '.name' charts/*/Chart.yaml)" | ||
| CHART_VERSION="$(yq '.version' charts/*/Chart.yaml)" | ||
| CHART_VERSION=$(echo ${{ github.ref_name }} | sed 's/v//g') | ||
|
Comment on lines
37
to
+39
|
||
| { | ||
| echo "app_version=$APP_VERSION" | ||
| echo "chart_name=$CHART_NAME" | ||
|
|
@@ -75,12 +75,12 @@ jobs: | |
| image_name: ${{ steps.publish-ghcr.outputs.image_name }} | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
|
||
|
|
||
| - name: Publish Chart to GHCR | ||
| id: publish-ghcr | ||
| # yamllint disable-line rule:line-length | ||
| uses: linuxfoundation/lfx-public-workflows/.github/actions/helm-chart-oci-publisher@c465d6571fa0b8be9d551d902955164ea04a00af # main | ||
| uses: linuxfoundation/lfx-public-workflows/.github/actions/helm-chart-oci-publisher@17e4144d7ba68f7c3e8c16eece5aed15fd7c2dc8 # main | ||
|
||
| with: | ||
| name: ${{ needs.publish.outputs.chart_name }} | ||
| repository: ${{ github.repository }}/chart | ||
|
|
@@ -91,12 +91,12 @@ jobs: | |
| registry_password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Install Cosign | ||
| uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2 | ||
| uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2 | ||
|
||
| with: | ||
| cosign-release: "${{ env.COSIGN_VERSION }}" | ||
|
|
||
| - name: Login to GitHub | ||
| uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 | ||
| uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 | ||
|
||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inline comment spacing here is
... # v4with only one space before#. With.yamllintextending the default rules, this typically violates thecommentsrule (min 2 spaces before an inline comment). Use two spaces before#(see.github/workflows/mega-linter.yml:28for the existing style).