Skip to content

Commit

Permalink
Add ci GitHub action release for Yas's charts (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
nashtech-bangnguyenl authored Jul 11, 2023
1 parent b3357f3 commit 91da49a
Show file tree
Hide file tree
Showing 28 changed files with 33 additions and 51 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/charts-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: release Charts
name: release charts ci

on:
push:
branches:
- main
branches: [ "main" ]
paths:
- "/charts/**"
- "charts/**"
- ".github/workflows/charts-ci.yaml"

jobs:
release-charts:
if: "!contains(github.event.commits[0].message, '[skip ci]')"
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion charts/backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"
6 changes: 0 additions & 6 deletions charts/backoffice-bff/Chart.lock

This file was deleted.

2 changes: 1 addition & 1 deletion charts/backoffice-bff/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/backoffice-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: ui
Expand Down
2 changes: 1 addition & 1 deletion charts/cart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/customer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/inventory/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/location/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/media/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/order/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/payment-paypal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/payment/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/product/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/promotion/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/rating/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/search/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/storefront-bff/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/storefront-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: ui
Expand Down
2 changes: 1 addition & 1 deletion charts/swagger-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"
2 changes: 1 addition & 1 deletion charts/tax/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"

dependencies:
- name: backend
Expand Down
2 changes: 1 addition & 1 deletion charts/ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"
3 changes: 2 additions & 1 deletion charts/values.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ backend:
nameOverride: {{service}}
fullnameOverride: {{service}}
databaseName: {{service}}

ingress:
enabled: true
host: api.yas.local.com
path: /{{service}}
path: /{{service}}
2 changes: 1 addition & 1 deletion charts/yas-configuration/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "1.1.0"

dependencies:
- name: reloader
Expand Down
4 changes: 3 additions & 1 deletion k8s-deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ reloader:
watchGlobally: false
```
## Yas helm charts
All charts of Yas application locale in `charts` folder
All charts of Yas application situated in `charts` folder

To Install the Yas helm charts access to [https://nashtech-garage.github.io/yas/](https://nashtech-garage.github.io/yas/)

## Observability
The Yas observability follow by the standard of Open Telemetry recommendation.
Expand Down
5 changes: 0 additions & 5 deletions k8s-deployment/observability/prometheus.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@ grafana:
enabled: true
hosts:
- *hostname
grafana:
ini:
database:
user: yasadminuser
password: admin
11 changes: 1 addition & 10 deletions k8s-deployment/observability/promtail.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,4 @@ config:
- url: http://opentelemetry-collector:3500/loki/api/v1/push
snippets:
pipelineStages:
- docker: {}
- match:
selector: '{namespace="yas"}'
stages:
- regex:
expression: '.*traceId=(?P<traceId>\w*).*spanId=(?P<spanId>\w*).*level=(?P<level>[a-zA-Z]+)'
- labels:
traceId:
spanId:
level:
- docker: {}
4 changes: 2 additions & 2 deletions k8s-deployment/setup-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ helm upgrade --install promtail grafana/promtail \

#Install prometheus + grafana
hostname="grafana.$DOMAIN" yq -i '.hostname=env(hostname)' ./observability/prometheus.values.yaml
postgresqlUsername="$POSTGRESQL_USERNAME" yq -i '.grafana.grafana.ini.database.user=env(postgresqlUsername)' ./observability/prometheus.values.yaml
postgresqlPassword="$POSTGRESQL_PASSWORD" yq -i '.grafana.grafana.ini.database.password=env(postgresqlPassword)' ./observability/prometheus.values.yaml
postgresqlUsername="$POSTGRESQL_USERNAME" yq -i '.grafana."grafana.ini".database.user=env(postgresqlUsername)' ./observability/prometheus.values.yaml
postgresqlPassword="$POSTGRESQL_PASSWORD" yq -i '.grafana."grafana.ini".database.password=env(postgresqlPassword)' ./observability/prometheus.values.yaml
helm upgrade --install prometheus prometheus-community/kube-prometheus-stack \
--create-namespace --namespace observability \
-f ./observability/prometheus.values.yaml \
Expand Down

0 comments on commit 91da49a

Please sign in to comment.