Skip to content

Commit 9cca6e6

Browse files
committed
ci: add oci release for chart
Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>
1 parent bcf86f4 commit 9cca6e6

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.github/actions/publish/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,16 @@ runs:
5252
run: gh release upload ${{ steps.version.outputs.CHART_VERSION }} helm-repo/${{ steps.version.outputs.ARTIFACT }} --clobber
5353
env:
5454
GH_TOKEN: ${{ inputs.token }}
55+
56+
- name: Login to GitHub Container Registry
57+
uses: docker/login-action@v3.6.0
58+
with:
59+
registry: ghcr.io
60+
username: ${{ github.actor }}
61+
password: ${{ secrets.GITHUB_TOKEN }}
62+
63+
- name: Push chart to GHCR
64+
run: |
65+
mkdir -p ld-relay
66+
helm package -d ld-relay .
67+
helm push ld-relay-*.tgz oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts

.github/workflows/release-please.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ name: Run Release Please
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ oci ] # for test, will change after testing
66

77
jobs:
88
release-package:
99
runs-on: ubuntu-latest
1010
permissions:
1111
id-token: write # Needed if using OIDC to get release secrets.
1212
contents: write # Contents and pull-requests are for release-please to make releases.
13+
packages: write # needed for ghcr access
1314
pull-requests: write
1415
steps:
1516
- uses: googleapis/release-please-action@v4

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type: application
2323
# This is the chart version. This version number should be incremented each time you make changes
2424
# to the chart and its templates, including the app version.
2525
# Versions are expected to follow Semantic Versioning (https://semver.org/)
26-
version: 3.4.0
26+
version: 3.5.0
2727

2828
# This is the version number of the application being deployed. This version number should be
2929
# incremented each time you make changes to the application. Versions are not expected to

0 commit comments

Comments
 (0)