feat(config): update application.yml for staging and production environments
Build & Test (NowChessSystems) TeamCity build finished

This commit is contained in:
2026-04-30 10:55:20 +02:00
parent 952cf00413
commit 6113432a14
12 changed files with 153 additions and 19 deletions
+11 -2
View File
@@ -12,12 +12,21 @@ jobs:
outputs:
allowed: ${{ steps.check.outputs.allowed }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- id: check
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" || "${{ github.actor }}" == "TeamCity" ]]; then
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "allowed=true" >> "$GITHUB_OUTPUT"
else
echo "allowed=false" >> "$GITHUB_OUTPUT"
COMMIT_AUTHOR=$(git log -1 --format='%an')
if [[ "$COMMIT_AUTHOR" == "TeamCity" ]]; then
echo "allowed=true" >> "$GITHUB_OUTPUT"
else
echo "allowed=false" >> "$GITHUB_OUTPUT"
fi
fi
build-and-push:
@@ -37,17 +37,19 @@ nowchess:
rest-client:
core-service:
url: ${CORE_SERVICE_URL}
nowchess:
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
prefix: ${REDIS_PREFIX:nowchess}
datasource:
db-kind: postgresql
username: ${DB_USER}
password: ${DB_PASSWORD}
jdbc:
url: ${DB_URL}
nowchess:
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
prefix: ${REDIS_PREFIX:nowchess}
internal:
secret: ${INTERNAL_SECRET}
hibernate-orm:
schema-management:
strategy: update
@@ -61,4 +63,17 @@ nowchess:
jwt:
sign:
key:
location: ${JWT_PRIVATE_KEY_PATH:keys/private.pem}
location: ${JWT_PRIVATE_KEY_PATH:keys/private.pem}
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -22,3 +22,17 @@ nowchess:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
prefix: ${REDIS_PREFIX:nowchess}
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -25,7 +25,8 @@ nowchess:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
prefix: ${REDIS_PREFIX:nowchess}
internal:
secret: ${INTERNAL_SECRET:123abc}
coordinator:
max-games-per-core: 500
max-deviation-percent: 20
@@ -50,3 +51,17 @@ nowchess:
quarkus:
log:
level: DEBUG
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -24,9 +24,8 @@ nowchess:
host: localhost
port: 6379
prefix: nowchess
internal:
secret: 123abc
secret: ${INTERNAL_SECRET:123abc}
coordinator:
enabled: ${NOWCHESS_COORDINATOR_ENABLED:false}
@@ -111,3 +110,17 @@ nowchess:
stream-heartbeat-interval: 200ms
redis-heartbeat-interval: 2s
instance-id: ${HOSTNAME:local}-${quarkus.uuid}
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -1,6 +0,0 @@
-- This file allow to write SQL commands that will be emitted in test and dev.
-- The commands are commented as their support depends of the database
-- insert into myentity (id, field) values(1, 'field-1');
-- insert into myentity (id, field) values(2, 'field-2');
-- insert into myentity (id, field) values(3, 'field-3');
-- alter sequence myentity_seq restart with 4;
+15 -1
View File
@@ -9,7 +9,7 @@ quarkus:
nowchess:
internal:
secret: 123abc
secret: ${INTERNAL_SECRET:123abc}
smallrye-openapi:
info-title: NowChess IO Service
info-version: 1.0.0
@@ -18,3 +18,17 @@ nowchess:
swagger-ui:
always-include: true
path: /swagger-ui
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -22,3 +22,17 @@ nowchess:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
prefix: ${REDIS_PREFIX:nowchess}
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -9,4 +9,18 @@ quarkus:
nowchess:
internal:
secret: 123abc
secret: ${INTERNAL_SECRET:123abc}
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -22,6 +22,8 @@ nowchess:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
prefix: ${REDIS_PREFIX:nowchess}
internal:
secret: ${INTERNAL_SECRET:123abc}
"%test":
quarkus:
@@ -39,3 +41,17 @@ nowchess:
host: localhost
port: 6379
prefix: test-store
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN
@@ -11,6 +11,8 @@ nowchess:
host: localhost
port: 6379
prefix: nowchess
internal:
secret: ${INTERNAL_SECRET:123abc}
"%dev":
nowchess:
@@ -37,3 +39,17 @@ nowchess:
publickey:
location: ${JWT_PUBLIC_KEY_PATH:keys/public.pem}
issuer: nowchess
"%staging":
quarkus:
swagger-ui:
always-include: true
dev-ui:
always-include: true
log:
level: INFO
"%production":
quarkus:
log:
level: WARN