Skip to content

Commit ca7c1f7

Browse files
committed
Add support OCI container registry #23
1 parent db40a39 commit ca7c1f7

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,22 @@ jobs:
7777
uses: helm/chart-releaser-action@v1.5.0
7878
env:
7979
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
80-
CR_RELEASE_NAME_TEMPLATE: "cryptpad-helm-{{ .Version }}"
80+
CR_RELEASE_NAME_TEMPLATE: "cryptpad-helm-{{ .Version }}"
81+
82+
- name: Login to GitHub Container Registry
83+
uses: docker/login-action@v1
84+
with:
85+
registry: ghcr.io
86+
username: ${{ github.repository_owner }}
87+
password: ${{ secrets.GITHUB_TOKEN }}
88+
89+
- name: Push Charts to GHCR
90+
run: |
91+
shopt -s nullglob
92+
for pkg in .cr-release-packages/*.tgz; do
93+
if [ -z "${pkg:-}" ]; then
94+
break
95+
fi
96+
helm push "${pkg}" oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/helm
97+
done
98+

charts/cryptpad/Chart.yaml

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

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

0 commit comments

Comments
 (0)