-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: GitHub Action <>
- Loading branch information
Showing
6 changed files
with
136 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
on: | ||
pull_request: | ||
paths: | ||
- 'templates/**.j2' | ||
- 'versions-config.json' | ||
workflow_call: | ||
inputs: | ||
pr_head: | ||
type: string | ||
|
||
name: Update docker-compose and helm versions | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
update_versions: | ||
name: build files | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: "${{ github.event.pull_request.head.ref }}${{ inputs.pr_head }}" | ||
token: ${{ secrets.GH_TOKEN }} | ||
- uses: azure/[email protected] | ||
with: | ||
version: v3.16.2 | ||
- name: build docker-compose.yml | ||
uses: cuchi/[email protected] | ||
with: | ||
template: ./templates/docker-compose.j2 | ||
output_file: ./docker-compose.yml | ||
data_file: versions-config.json | ||
data_format: json | ||
- name: build docker-compose-dev.yml | ||
uses: cuchi/[email protected] | ||
with: | ||
template: ./templates/docker-compose.j2 | ||
output_file: ./docker-compose-dev.yml | ||
data_file: versions-config.json | ||
data_format: json | ||
env: | ||
DEV_MODE: 'true' | ||
- name: build docker-compose.zitadel.yml | ||
uses: cuchi/[email protected] | ||
with: | ||
template: ./templates/docker-compose.zitadel.j2 | ||
output_file: ./docker-compose.zitadel.yml | ||
data_file: versions-config.json | ||
data_format: json | ||
- name: check docker-compose.yml config | ||
run: docker compose -f ./docker-compose.yml config | ||
- name: build deploy/helm/values.yaml | ||
uses: cuchi/[email protected] | ||
with: | ||
template: ./templates/helm-values.j2 | ||
output_file: ./deploy/helm/values.yaml | ||
data_file: versions-config.json | ||
data_format: json | ||
- name: check helm config | ||
run: helm lint ./deploy/helm | ||
- name: Initialize mandatory git config | ||
run: | | ||
git config user.email "" && git config user.name "GitHub Action" | ||
- name: Commit compose files | ||
id: make-commit | ||
run: | | ||
git add docker-compose.yml docker-compose-dev.yml docker-compose.zitadel.yml deploy/helm/values.yaml | ||
if ! git diff-index --quiet HEAD; then | ||
git commit --message "update docker-compose and helm versions" | ||
git push | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
database: | ||
enabled: true | ||
demo: true | ||
|
||
ingress: | ||
enabled: true | ||
domain: datalens.local | ||
yc: false | ||
|
||
application: | ||
versions: | ||
ui: {{ uiVersion }} | ||
control: {{ controlApiVersion }} | ||
data: {{ dataApiVersion }} | ||
us: {{ usVersion }} | ||
replicas: | ||
ui: 1 | ||
us: 1 | ||
data: 1 | ||
control: 1 | ||
resources: | ||
ui: | ||
requests: | ||
cpu: 250m | ||
memory: 256Mi | ||
limits: | ||
cpu: 1000m | ||
memory: 512Mi | ||
control: | ||
requests: | ||
cpu: 500m | ||
memory: 1024Mi | ||
limits: | ||
cpu: 1000m | ||
memory: 2048Mi | ||
data: | ||
requests: | ||
cpu: 1000m | ||
memory: 1024Mi | ||
limits: | ||
cpu: 2000m | ||
memory: 2048Mi | ||
us: | ||
requests: | ||
cpu: 500m | ||
memory: 512Mi | ||
limits: | ||
cpu: 1000m | ||
memory: 1024Mi |