Skip to content

Commit 041aeb7

Browse files
committed
new helm oci step
1 parent 0bc36d8 commit 041aeb7

File tree

3 files changed

+45
-48
lines changed

3 files changed

+45
-48
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
################################################################################
2+
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> #
3+
# Edit Makefile.maker.yaml instead. #
4+
################################################################################
5+
6+
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company
7+
# SPDX-License-Identifier: Apache-2.0
8+
9+
name: Helm OCI Package GHCR
10+
"on":
11+
push:
12+
branches:
13+
- new-helm-oci
14+
paths:
15+
- charts/openstack-hypervisor-operator/**
16+
tags:
17+
- '*'
18+
workflow_dispatch: {}
19+
permissions:
20+
contents: read
21+
packages: write
22+
jobs:
23+
build-and-push-helm-package:
24+
name: Build and publish Helm Chart OCI
25+
runs-on: large_runner_16core_64gb
26+
steps:
27+
- name: Check out code
28+
uses: actions/checkout@v6
29+
- name: Install Helm
30+
uses: azure/setup-helm@v4.3.1
31+
- name: Lint Helm Chart
32+
run: helm lint charts/openstack-hypervisor-operator
33+
- name: Package Helm Chart
34+
run: helm package charts/openstack-hypervisor-operator --destination ./chart
35+
- name: Log in to the Container registry
36+
uses: docker/login-action@v4
37+
with:
38+
password: ${{ secrets.GITHUB_TOKEN }}
39+
registry: ghcr.io
40+
username: ${{ github.actor }}
41+
- name: Push Helm Chart to ghcr.io
42+
run: helm push ./chart/*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts

.github/workflows/publish-helm.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

Makefile.maker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ githubWorkflow:
4242
- latest
4343
- semver
4444
- sha
45+
pushHelmChartToGhcr:
46+
path: charts/openstack-hypervisor-operator
47+
lint: true
4548
license:
4649
enabled: true
4750

0 commit comments

Comments
 (0)