DevOps
This commit is contained in:
@@ -6,58 +6,20 @@ on:
|
|||||||
test_env:
|
test_env:
|
||||||
description: 'активное окружение'
|
description: 'активное окружение'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: choice
|
||||||
default: 'test'
|
options:
|
||||||
api_url:
|
- test
|
||||||
description: 'базовый URL DevSpace API'
|
- devx
|
||||||
|
default: test
|
||||||
|
gradle_target:
|
||||||
|
description: 'Цель сборки'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: choice
|
||||||
ui_url:
|
options:
|
||||||
description: 'базовый URL DevSpace UI'
|
- 'apiTest'
|
||||||
required: true
|
- 'apiCoreTest'
|
||||||
type: string
|
- 'apiBffTest'
|
||||||
backend_url:
|
default: 'apiTest'
|
||||||
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
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-dev:
|
deploy-dev:
|
||||||
name: 'Deploy to dev'
|
name: 'Deploy to dev'
|
||||||
@@ -84,20 +46,8 @@ jobs:
|
|||||||
distribution: "adopt"
|
distribution: "adopt"
|
||||||
- name: Building
|
- name: Building
|
||||||
run: |
|
run: |
|
||||||
./gradlew test --no-daemon -x cyclonedxBom \
|
./gradlew ${{ input.gradle_target }} --no-daemon -x cyclonedxBom \
|
||||||
-Dtest.env=${{ input.test_env }} \
|
-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 }}
|
|
||||||
- name: Build and push Docker Image
|
- name: Build and push Docker Image
|
||||||
uses: https://git.binom.pw/subochev/devops/build-docker@main
|
uses: https://git.binom.pw/subochev/devops/build-docker@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user