Skip to content

Commit

Permalink
feat: release charts on registry as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Sep 10, 2024
1 parent 580dbb3 commit 4af6baa
Show file tree
Hide file tree
Showing 38 changed files with 89 additions and 45 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,22 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Add helm repos
run: .github/add-repos.sh

- name: Login helm into container registries
run: helm registry login -u ${{ github.repository_owner }} -p ${{ secrets.CR_PAT }} ghcr.io

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Publish charts to OCI
run: for f in ./.cr-release-packages/*; do helm push $f oci://ghcr.io/restorecommerce/charts; done
35 changes: 35 additions & 0 deletions bump.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env python3

# Bumps all chart versions

from os import path
from yaml import load, dump

try:
from yaml import CLoader as Loader, CDumper as Dumper
except ImportError:
from yaml import Loader, Dumper

import glob
import semver

CHART_DIRECTORIES = "charts/*"

for dir in glob.glob(CHART_DIRECTORIES):
if path.exists(path.join(dir, "Chart.yaml")) and path.exists(path.join(dir, "values.yaml")):
with open(path.join(dir, "values.yaml"), "r") as f:
values = load(f, Loader)

if "image" not in values or "repository" not in values["image"]:
continue

image = values["image"]["repository"]

with open(path.join(dir, "Chart.yaml"), "r") as f:
chart = load(f, Loader)
chartVersion = chart["version"]

chart["version"] = str(semver.VersionInfo.parse(chartVersion).bump_patch())

with open(path.join(dir, "Chart.yaml"), "w") as f:
dump(chart, f, Dumper)
2 changes: 1 addition & 1 deletion charts/access-control-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: access-control-srv
sources:
- https://github.com/restorecommerce/access-control-srv
type: application
version: 0.1.36
version: 0.1.37
2 changes: 1 addition & 1 deletion charts/access-control-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# access-control-srv

![Version: 0.1.36](https://img.shields.io/badge/Version-0.1.36-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.2](https://img.shields.io/badge/AppVersion-1.5.2-informational?style=flat-square)
![Version: 0.1.37](https://img.shields.io/badge/Version-0.1.37-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.2](https://img.shields.io/badge/AppVersion-1.5.2-informational?style=flat-square)

Restorecommerce access-control-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/catalog-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: catalog-srv
sources:
- https://github.com/restorecommerce/catalog-srv
type: application
version: 0.1.20
version: 0.1.21
2 changes: 1 addition & 1 deletion charts/catalog-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# catalog-srv

![Version: 0.1.20](https://img.shields.io/badge/Version-0.1.20-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.6](https://img.shields.io/badge/AppVersion-1.4.6-informational?style=flat-square)
![Version: 0.1.21](https://img.shields.io/badge/Version-0.1.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.6](https://img.shields.io/badge/AppVersion-1.4.6-informational?style=flat-square)

Restorecommerce catalog-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/console/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ name: console
sources:
- https://github.com/restorecommerce/console
type: application
version: 0.1.15
version: 0.1.16
2 changes: 1 addition & 1 deletion charts/console/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# console

![Version: 0.1.15](https://img.shields.io/badge/Version-0.1.15-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.6](https://img.shields.io/badge/AppVersion-0.0.6-informational?style=flat-square)
![Version: 0.1.16](https://img.shields.io/badge/Version-0.1.16-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.6](https://img.shields.io/badge/AppVersion-0.0.6-informational?style=flat-square)

Restorecommerce console

Expand Down
2 changes: 1 addition & 1 deletion charts/data-import/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: data-import
sources:
- https://github.com/restorecommerce/data
type: application
version: 0.1.14
version: 0.1.15
2 changes: 1 addition & 1 deletion charts/data-import/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# data-import

![Version: 0.1.14](https://img.shields.io/badge/Version-0.1.14-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: demo-shop-v0.0.5](https://img.shields.io/badge/AppVersion-demo--shop--v0.0.5-informational?style=flat-square)
![Version: 0.1.15](https://img.shields.io/badge/Version-0.1.15-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: demo-shop-v0.0.5](https://img.shields.io/badge/AppVersion-demo--shop--v0.0.5-informational?style=flat-square)

Restorecommerce data importer

Expand Down
2 changes: 1 addition & 1 deletion charts/facade-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: facade-srv
sources:
- https://github.com/restorecommerce/facade-srv
type: application
version: 0.1.32
version: 0.1.33
2 changes: 1 addition & 1 deletion charts/facade-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# facade-srv

![Version: 0.1.32](https://img.shields.io/badge/Version-0.1.32-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.10](https://img.shields.io/badge/AppVersion-1.5.10-informational?style=flat-square)
![Version: 0.1.33](https://img.shields.io/badge/Version-0.1.33-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.10](https://img.shields.io/badge/AppVersion-1.5.10-informational?style=flat-square)

Restorecommerce facade-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/fulfillment-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: fulfillment-srv
sources:
- https://github.com/restorecommerce/fulfillment-srv
type: application
version: 0.1.21
version: 0.1.22
2 changes: 1 addition & 1 deletion charts/fulfillment-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fulfillment-srv

![Version: 0.1.21](https://img.shields.io/badge/Version-0.1.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.7](https://img.shields.io/badge/AppVersion-0.2.7-informational?style=flat-square)
![Version: 0.1.22](https://img.shields.io/badge/Version-0.1.22-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.7](https://img.shields.io/badge/AppVersion-0.2.7-informational?style=flat-square)

Restorecommerce fulfillment-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/identity-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: identity-srv
sources:
- https://github.com/restorecommerce/identity-srv
type: application
version: 0.1.43
version: 0.1.44
2 changes: 1 addition & 1 deletion charts/identity-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# identity-srv

![Version: 0.1.43](https://img.shields.io/badge/Version-0.1.43-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.8.3](https://img.shields.io/badge/AppVersion-1.8.3-informational?style=flat-square)
![Version: 0.1.44](https://img.shields.io/badge/Version-0.1.44-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.8.3](https://img.shields.io/badge/AppVersion-1.8.3-informational?style=flat-square)

Restorecommerce identity-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/invoicing-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: invoicing-srv
sources:
- https://github.com/restorecommerce/invoicing-srv
type: application
version: 0.1.21
version: 0.1.22
2 changes: 1 addition & 1 deletion charts/invoicing-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# invoicing-srv

![Version: 0.1.21](https://img.shields.io/badge/Version-0.1.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.9](https://img.shields.io/badge/AppVersion-1.3.9-informational?style=flat-square)
![Version: 0.1.22](https://img.shields.io/badge/Version-0.1.22-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.9](https://img.shields.io/badge/AppVersion-1.3.9-informational?style=flat-square)

Restorecommerce invoicing-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/ldap-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: ldap-srv
sources:
- https://github.com/restorecommerce/ldap-srv
type: application
version: 0.1.15
version: 0.1.16
2 changes: 1 addition & 1 deletion charts/ldap-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ldap-srv

![Version: 0.1.15](https://img.shields.io/badge/Version-0.1.15-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.1](https://img.shields.io/badge/AppVersion-1.1.1-informational?style=flat-square)
![Version: 0.1.16](https://img.shields.io/badge/Version-0.1.16-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.1](https://img.shields.io/badge/AppVersion-1.1.1-informational?style=flat-square)

Restorecommerce ldap-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/notification-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: notification-srv
sources:
- https://github.com/restorecommerce/notification-srv
type: application
version: 0.1.28
version: 0.1.29
2 changes: 1 addition & 1 deletion charts/notification-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# notification-srv

![Version: 0.1.28](https://img.shields.io/badge/Version-0.1.28-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.8](https://img.shields.io/badge/AppVersion-1.3.8-informational?style=flat-square)
![Version: 0.1.29](https://img.shields.io/badge/Version-0.1.29-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.8](https://img.shields.io/badge/AppVersion-1.3.8-informational?style=flat-square)

Restorecommerce notification-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/ordering-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: ordering-srv
sources:
- https://github.com/restorecommerce/ordering-srv
type: application
version: 0.1.27
version: 0.1.28
2 changes: 1 addition & 1 deletion charts/ordering-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ordering-srv

![Version: 0.1.27](https://img.shields.io/badge/Version-0.1.27-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.15](https://img.shields.io/badge/AppVersion-0.2.15-informational?style=flat-square)
![Version: 0.1.28](https://img.shields.io/badge/Version-0.1.28-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.15](https://img.shields.io/badge/AppVersion-0.2.15-informational?style=flat-square)

Restorecommerce ordering-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/ostorage-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: ostorage-srv
sources:
- https://github.com/restorecommerce/ostorage-srv
type: application
version: 0.1.27
version: 0.1.28
2 changes: 1 addition & 1 deletion charts/ostorage-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ostorage-srv

![Version: 0.1.27](https://img.shields.io/badge/Version-0.1.27-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.8](https://img.shields.io/badge/AppVersion-1.3.8-informational?style=flat-square)
![Version: 0.1.28](https://img.shields.io/badge/Version-0.1.28-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.8](https://img.shields.io/badge/AppVersion-1.3.8-informational?style=flat-square)

Restorecommerce ostorage-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/payment-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: payment-srv
sources:
- https://github.com/restorecommerce/payment-srv
type: application
version: 0.1.19
version: 0.1.20
2 changes: 1 addition & 1 deletion charts/payment-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# payment-srv

![Version: 0.1.19](https://img.shields.io/badge/Version-0.1.19-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.4](https://img.shields.io/badge/AppVersion-1.3.4-informational?style=flat-square)
![Version: 0.1.20](https://img.shields.io/badge/Version-0.1.20-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.4](https://img.shields.io/badge/AppVersion-1.3.4-informational?style=flat-square)

Restorecommerce payment-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/pdf-rendering-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: pdf-rendering-srv
sources:
- https://github.com/restorecommerce/pdf-rendering-srv
type: application
version: 0.2.6
version: 0.2.7
2 changes: 1 addition & 1 deletion charts/pdf-rendering-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pdf-rendering-srv

![Version: 0.2.6](https://img.shields.io/badge/Version-0.2.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square)
![Version: 0.2.7](https://img.shields.io/badge/Version-0.2.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square)

Restorecommerce pdf-rendering-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/rendering-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: rendering-srv
sources:
- https://github.com/restorecommerce/rendering-srv
type: application
version: 0.1.31
version: 0.1.32
2 changes: 1 addition & 1 deletion charts/rendering-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# rendering-srv

![Version: 0.1.31](https://img.shields.io/badge/Version-0.1.31-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.11](https://img.shields.io/badge/AppVersion-1.3.11-informational?style=flat-square)
![Version: 0.1.32](https://img.shields.io/badge/Version-0.1.32-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.11](https://img.shields.io/badge/AppVersion-1.3.11-informational?style=flat-square)

Restorecommerce rendering-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/resource-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: resource-srv
sources:
- https://github.com/restorecommerce/resource-srv
type: application
version: 0.1.22
version: 0.1.23
2 changes: 1 addition & 1 deletion charts/resource-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# resource-srv

![Version: 0.1.22](https://img.shields.io/badge/Version-0.1.22-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.8](https://img.shields.io/badge/AppVersion-1.5.8-informational?style=flat-square)
![Version: 0.1.23](https://img.shields.io/badge/Version-0.1.23-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.8](https://img.shields.io/badge/AppVersion-1.5.8-informational?style=flat-square)

Restorecommerce resource-srv

Expand Down
2 changes: 1 addition & 1 deletion charts/scheduling-srv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: scheduling-srv
sources:
- https://github.com/restorecommerce/scheduling-srv
type: application
version: 0.1.22
version: 0.1.23
2 changes: 1 addition & 1 deletion charts/scheduling-srv/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# scheduling-srv

![Version: 0.1.22](https://img.shields.io/badge/Version-0.1.22-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.2.7](https://img.shields.io/badge/AppVersion-1.2.7-informational?style=flat-square)
![Version: 0.1.23](https://img.shields.io/badge/Version-0.1.23-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.2.7](https://img.shields.io/badge/AppVersion-1.2.7-informational?style=flat-square)

Restorecommerce scheduling-srv

Expand Down
18 changes: 9 additions & 9 deletions charts/store-front/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: v2
name: store-front
description: Restorecommerce store-front
type: application
version: 0.1.10
appVersion: 0.0.1
description: Restorecommerce store-front
icon: https://avatars0.githubusercontent.com/u/8339525
sources:
- https://github.com/restorecommerce/store-front
maintainers:
- name: restorecommerce
url: https://restorecommerce.io/
email: [email protected]
- email: [email protected]
name: restorecommerce
url: https://restorecommerce.io/
name: store-front
sources:
- https://github.com/restorecommerce/store-front
type: application
version: 0.1.11
2 changes: 1 addition & 1 deletion charts/store-front/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# store-front

![Version: 0.1.10](https://img.shields.io/badge/Version-0.1.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)
![Version: 0.1.11](https://img.shields.io/badge/Version-0.1.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)

Restorecommerce store-front

Expand Down

0 comments on commit 4af6baa

Please sign in to comment.