Skip to content

Commit

Permalink
fix(mediator) : update deployment process using helm chart (#282)
Browse files Browse the repository at this point in the history
* fix release to use helm package

Signed-off-by: mineme0110 <shailesh.patil@iohk.io>

* fix release to use helm package

Signed-off-by: mineme0110 <shailesh.patil@iohk.io>

* corrected the Chart.yml with correct name

Signed-off-by: mineme0110 <shailesh.patil@iohk.io>

* rename tag from prism to identus

Signed-off-by: mineme0110 <shailesh.patil@iohk.io>

* deleetd the index.yml

Signed-off-by: mineme0110 <shailesh.patil@iohk.io>

* updated the place holders

Signed-off-by: mineme0110 <shailesh.patil@iohk.io>

* add helm to the release action

Signed-off-by: mineme0110 <shailesh.patil@iohk.io>

---------

Signed-off-by: mineme0110 <shailesh.patil@iohk.io>
Signed-off-by: Shailesh <Patil>
  • Loading branch information
mineme0110 authored and Shailesh committed Apr 30, 2024
1 parent 12f3992 commit 9393f47
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Setup Helm
uses: azure/setup-helm@v3
with:
version: "3.12.2" # default is latest (stable)
- name: Setup yq - portable yaml processor
uses: mikefarah/yq@v4.34.2
- name: Setup Scala.JS
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/charts/mediator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: prism-node
description: A Helm chart for deploying prism-mediator
name: identus-mediator
description: A Helm chart for deploying identus-mediator
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
Expand Down
5 changes: 3 additions & 2 deletions infrastructure/charts/mediator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
ingress:
enabled: true

applicationUrls:
- chart-base-prism-mediator.atalaprism.io
platformIngressUrl: chart-base-platform-ingress.atalaprism.io
- chart-base-identus-mediator.atalaprism.io # these are place holder
platformIngressUrl: chart-base-platform-ingress.atalaprism.io # these are place holder
cors:
enabled: true
allow_origins: "*"
Expand Down
26 changes: 25 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"prerelease": "snapshot"
}
],
"tagFormat": "prism-mediator-v${version}",
"tagFormat": "identus-mediator-v${version}",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand All @@ -44,6 +44,30 @@
"prepareCmd": "NODE_OPTIONS=--openssl-legacy-provider sbt -J-Xmx5120m \"release release-version ${nextRelease.version} next-version ${nextRelease.version}-SNAPSHOT with-defaults\""
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "yq eval -i '.appVersion = \"${nextRelease.version}\" | .version = \"${nextRelease.version}\"' ./infrastructure/charts/mediator/Chart.yaml"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "helm package -d infrastructure/charts -u infrastructure/charts/mediator"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "helm repo index --url \"https://raw.githubusercontent.com/input-output-hk/atala-prism-mediator/main/infrastructure/charts\" --merge index.yaml infrastructure/charts"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "yq -i -P infrastructure/charts/index.yaml"
}
],
[
"@semantic-release/exec",
{
Expand Down

0 comments on commit 9393f47

Please sign in to comment.