Skip to content

Commit 6ef5c59

Browse files
CI: Push OCI Helm chart
Push Helm chart to https://quay.io/repository/cilium-charts-dev/tetragon to make it easier to install Tetragon CI builds. Signed-off-by: Michi Mutsuzaki <[email protected]>
1 parent ca219ed commit 6ef5c59

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.github/workflows/build-images-ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ permissions:
2424
jobs:
2525
build-and-push:
2626
runs-on: ubuntu-24.04
27+
outputs:
28+
tag: ${{ steps.tag.outputs.tag }}
2729
strategy:
2830
matrix:
2931
include:
@@ -146,3 +148,46 @@ jobs:
146148
echo "| **SHA256** | \`${{ steps.docker_build_ci_pr.outputs.digest }}\` |" >> $GITHUB_STEP_SUMMARY
147149
echo "| **Pull by tag** | \`$IMAGE:${{ steps.tag.outputs.tag }}\` |" >> $GITHUB_STEP_SUMMARY
148150
echo "| **Pull by digest** | \`$IMAGE@${{ steps.docker_build_ci_pr.outputs.digest }}\` |" >> $GITHUB_STEP_SUMMARY
151+
152+
helm-chart:
153+
if: ${{ success() }}
154+
name: Push OCI Helm Chart
155+
runs-on: ubuntu-24.04
156+
needs: build-and-push
157+
steps:
158+
- name: Checkout Source Code
159+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
160+
with:
161+
ref: ${{ needs.build-and-push.outputs.tag }}
162+
submodules: true
163+
persist-credentials: false
164+
fetch-depth: 0
165+
166+
- name: Get chart version
167+
id: version
168+
run: |
169+
echo "chart_version=$(make chart-version)" >> $GITHUB_OUTPUT
170+
171+
- name: Push OCI Helm dev chart
172+
uses: cilium/reusable-workflows/.github/actions/push-helm-chart@6ae27958f2f37545bf48e44106b73df05b1f6d12 # v0.1.0
173+
with:
174+
name: tetragon
175+
path: install/kubernetes/tetragon
176+
version: ${{ steps.version.outputs.chart_version }}
177+
values_file_changes: |
178+
{
179+
"tetragon.image.repository": "quay.io/cilium/tetragon-ci",
180+
"tetragon.image.tag": "${{ needs.build-and-push.outputs.tag }}",
181+
"tetragonOperator.image.repository": "quay.io/cilium/tetragon-operator-ci",
182+
"tetragonOperator.image.tag": "${{ needs.build-and-push.outputs.tag }}",
183+
}
184+
registry: quay.io
185+
registry_namespace: cilium-charts-dev
186+
registry_username: ${{ secrets.QUAY_CHARTS_DEV_USERNAME }}
187+
registry_password: ${{ secrets.QUAY_CHARTS_DEV_PASSWORD }}
188+
189+
- name: Print helm command
190+
run: |
191+
echo "Example commands:"
192+
echo helm template -n tetragon oci://quay.io/cilium-charts-dev/tetragon --version ${{ steps.version.outputs.chart_version }}
193+
echo helm upgrade --install tetragon -n tetragon oci://quay.io/cilium-charts-dev/tetragon --version ${{ steps.version.outputs.chart_version }}

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,13 @@ help: ## Display this help, based on https://www.thapaliya.com/en/writings/well-
491491
docs: ## Preview documentation website.
492492
$(MAKE) -C docs
493493

494-
.PHONY: version
494+
.PHONY: version chart-version
495495
version: ## Print Tetragon version.
496496
@echo $(VERSION)
497497

498+
chart-version: ## Print Tetragon OCI Helm chart version.
499+
@echo $(VERSION) | sed 's/^v\(.*\)/\1/'
500+
498501
.PHONY: gen-compile-commands
499502
BEAR_CLI := $(shell which bear 2> /dev/null)
500503
gen-compile-commands: ## Generates compile_commands.json

0 commit comments

Comments
 (0)