This commit is contained in:
2026-07-29 11:35:22 +03:00
parent 6fd714059e
commit 021cbb5ec6
+15 -65
View File
@@ -6,58 +6,20 @@ on:
test_env:
description: 'активное окружение'
required: true
type: string
default: 'test'
api_url:
description: 'базовый URL DevSpace API'
type: choice
options:
- test
- devx
default: test
gradle_target:
description: 'Цель сборки'
required: true
type: string
ui_url:
description: 'базовый URL DevSpace UI'
required: true
type: string
backend_url:
description: 'backend URL для части API-проверок'
required: true
type: string
db_url:
description: 'JDBC URL PostgreSQL'
required: true
type: string
db_user:
description: 'пользователь БД'
required: true
type: string
default: postgres
db_password:
description: 'пароль БД'
required: true
type: string
default: postgres
auth_url:
description: 'URL получения токена'
required: true
type: string
auth_clientId:
description: 'client id'
required: true
type: string
auth_grantType:
description: 'grant type'
required: true
type: string
auth_username:
description: 'пользователь для авторизации'
required: true
type: string
auth_password:
description: 'пароль пользователя'
required: true
type: string
generator_url:
description: 'URL генератора, нужен для тестов OpenAPI-файлов'
required: true
type: string
type: choice
options:
- 'apiTest'
- 'apiCoreTest'
- 'apiBffTest'
default: 'apiTest'
jobs:
deploy-dev:
name: 'Deploy to dev'
@@ -84,20 +46,8 @@ jobs:
distribution: "adopt"
- name: Building
run: |
./gradlew test --no-daemon -x cyclonedxBom \
-Dtest.env=${{ input.test_env }} \
-Dapi.url=${{ input.api_url }} \
-Dui.url=${{ input.ui_url }} \
-Dbackend.url=${{ input.backend_url }} \
-Ddb.url=${{ input.db_url }} \
-Ddb.user=${{ input.db_user }} \
-Ddb.password=${{ input.db_password }} \
-Dauth.url=${{ input.auth_url }} \
-Dauth.clientId=${{ input.auth_clientId }} \
-Dauth.grantType=${{ input.auth_grantType }} \
-Dauth.username=${{ input.auth_username }} \
-Dauth.password=${{ input.auth_password }} \
-Dgenerator.url=${{ input.generator_url }}
./gradlew ${{ input.gradle_target }} --no-daemon -x cyclonedxBom \
-Dtest.env=${{ input.test_env }}
- name: Build and push Docker Image
uses: https://git.binom.pw/subochev/devops/build-docker@main
with: