DEVX-200: [BE] Унифицировать понятие версии сервиса

This commit is contained in:
2026-04-07 18:04:17 +03:00
parent 4739e6756d
commit 32fc3c4022
8 changed files with 37 additions and 5 deletions
+12 -1
View File
@@ -12,6 +12,15 @@ on:
- devspc/devspace-gateway
- devspc/devspace-api
default: devspc/devspace-apiregistry-core-service
namespace:
description: 'Name Space'
required: true
type: choice
options:
- devx
- test
- prod
default: devx
branch:
description: 'Ветка'
required: true
@@ -70,7 +79,7 @@ jobs:
releaseName=$(basename "$pathToHelm")
echo "Release Name: $releaseName"
helm upgrade --install "$releaseName" "$pathToHelm" \
--namespace devx \
--namespace ${{ github.event.inputs.namespace }} \
--kubeconfig ./ku.yaml \
--create-namespace \
--set-string 'image.version=${{ github.event.inputs.version }}' \
@@ -78,6 +87,8 @@ jobs:
--set-string 'repository.name=${{ github.event.inputs.repo_path }}' \
--set-string 'repository.branch=${{ github.event.inputs.branch }}' \
--set "imagePullSecrets[0].name=regcred" \
-f devspc/${{ github.event.inputs.namespace }}/values.yaml \
-f devspc/values.yaml \
--wait
- name: 'Cleanup'
if: always()
+12 -1
View File
@@ -9,6 +9,15 @@ on:
options:
- devspc/devspace-selfkit-ui
default: devspc/devspace-selfkit-ui
namespace:
description: 'Name Space'
required: true
type: choice
options:
- devx
- test
- prod
default: devx
branch:
description: 'Ветка'
required: true
@@ -113,7 +122,7 @@ jobs:
releaseName=$(basename "$pathToHelm")
echo "Release Name: $releaseName"
helm upgrade --install "$releaseName" "$pathToHelm" \
--namespace devx \
--namespace ${{ github.event.inputs.namespace }} \
--kubeconfig ./ku.yaml \
--create-namespace \
--set-string 'image.version=${{ github.event.inputs.version }}' \
@@ -121,6 +130,8 @@ jobs:
--set-string 'repository.name=${{ github.event.inputs.repo_path }}' \
--set-string 'repository.branch=${{ github.event.inputs.branch }}' \
--set "imagePullSecrets[0].name=regcred" \
-f devspc/${{ github.event.inputs.namespace }}/values.yaml \
-f devspc/values.yaml \
--wait
- name: 'Cleanup'
if: always()
@@ -15,9 +15,9 @@ data:
application:
name: {{$.Release.Name}}
datasource:
url: jdbc:postgresql://192.168.76.114:5432/database
username: postgres
password: postgres
url: 'jdbc:postgresql://{{$.Values.database.url}}'
username: {{$.Values.database.user}}
password: {{$.Values.database.password}}
cloud:
vault:
enabled: false
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
helm
+4
View File
@@ -0,0 +1,4 @@
database:
url: '192.168.76.114:5432/database'
user: 'postgres'
password: 'postgres'
View File
+4
View File
@@ -0,0 +1,4 @@
database:
url: '192.168.76.114:5432/database'
user: 'postgres'
password: 'postgres'
View File