feat(config): update application.yml for staging and production environments
Build & Test (NowChessSystems) TeamCity build finished
Build & Test (NowChessSystems) TeamCity build finished
This commit is contained in:
@@ -12,12 +12,21 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
allowed: ${{ steps.check.outputs.allowed }}
|
allowed: ${{ steps.check.outputs.allowed }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
- id: check
|
- id: check
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" || "${{ github.actor }}" == "TeamCity" ]]; then
|
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||||
echo "allowed=true" >> "$GITHUB_OUTPUT"
|
echo "allowed=true" >> "$GITHUB_OUTPUT"
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
|||||||
@@ -37,17 +37,19 @@ nowchess:
|
|||||||
rest-client:
|
rest-client:
|
||||||
core-service:
|
core-service:
|
||||||
url: ${CORE_SERVICE_URL}
|
url: ${CORE_SERVICE_URL}
|
||||||
nowchess:
|
|
||||||
redis:
|
|
||||||
host: ${REDIS_HOST:localhost}
|
|
||||||
port: ${REDIS_PORT:6379}
|
|
||||||
prefix: ${REDIS_PREFIX:nowchess}
|
|
||||||
datasource:
|
datasource:
|
||||||
db-kind: postgresql
|
db-kind: postgresql
|
||||||
username: ${DB_USER}
|
username: ${DB_USER}
|
||||||
password: ${DB_PASSWORD}
|
password: ${DB_PASSWORD}
|
||||||
jdbc:
|
jdbc:
|
||||||
url: ${DB_URL}
|
url: ${DB_URL}
|
||||||
|
nowchess:
|
||||||
|
redis:
|
||||||
|
host: ${REDIS_HOST:localhost}
|
||||||
|
port: ${REDIS_PORT:6379}
|
||||||
|
prefix: ${REDIS_PREFIX:nowchess}
|
||||||
|
internal:
|
||||||
|
secret: ${INTERNAL_SECRET}
|
||||||
hibernate-orm:
|
hibernate-orm:
|
||||||
schema-management:
|
schema-management:
|
||||||
strategy: update
|
strategy: update
|
||||||
@@ -61,4 +63,17 @@ nowchess:
|
|||||||
jwt:
|
jwt:
|
||||||
sign:
|
sign:
|
||||||
key:
|
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}
|
host: ${REDIS_HOST:localhost}
|
||||||
port: ${REDIS_PORT:6379}
|
port: ${REDIS_PORT:6379}
|
||||||
prefix: ${REDIS_PREFIX:nowchess}
|
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}
|
host: ${REDIS_HOST:localhost}
|
||||||
port: ${REDIS_PORT:6379}
|
port: ${REDIS_PORT:6379}
|
||||||
prefix: ${REDIS_PREFIX:nowchess}
|
prefix: ${REDIS_PREFIX:nowchess}
|
||||||
|
internal:
|
||||||
|
secret: ${INTERNAL_SECRET:123abc}
|
||||||
coordinator:
|
coordinator:
|
||||||
max-games-per-core: 500
|
max-games-per-core: 500
|
||||||
max-deviation-percent: 20
|
max-deviation-percent: 20
|
||||||
@@ -50,3 +51,17 @@ nowchess:
|
|||||||
quarkus:
|
quarkus:
|
||||||
log:
|
log:
|
||||||
level: DEBUG
|
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
|
host: localhost
|
||||||
port: 6379
|
port: 6379
|
||||||
prefix: nowchess
|
prefix: nowchess
|
||||||
|
|
||||||
internal:
|
internal:
|
||||||
secret: 123abc
|
secret: ${INTERNAL_SECRET:123abc}
|
||||||
|
|
||||||
coordinator:
|
coordinator:
|
||||||
enabled: ${NOWCHESS_COORDINATOR_ENABLED:false}
|
enabled: ${NOWCHESS_COORDINATOR_ENABLED:false}
|
||||||
@@ -111,3 +110,17 @@ nowchess:
|
|||||||
stream-heartbeat-interval: 200ms
|
stream-heartbeat-interval: 200ms
|
||||||
redis-heartbeat-interval: 2s
|
redis-heartbeat-interval: 2s
|
||||||
instance-id: ${HOSTNAME:local}-${quarkus.uuid}
|
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;
|
|
||||||
@@ -9,7 +9,7 @@ quarkus:
|
|||||||
|
|
||||||
nowchess:
|
nowchess:
|
||||||
internal:
|
internal:
|
||||||
secret: 123abc
|
secret: ${INTERNAL_SECRET:123abc}
|
||||||
smallrye-openapi:
|
smallrye-openapi:
|
||||||
info-title: NowChess IO Service
|
info-title: NowChess IO Service
|
||||||
info-version: 1.0.0
|
info-version: 1.0.0
|
||||||
@@ -18,3 +18,17 @@ nowchess:
|
|||||||
swagger-ui:
|
swagger-ui:
|
||||||
always-include: true
|
always-include: true
|
||||||
path: /swagger-ui
|
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}
|
host: ${REDIS_HOST:localhost}
|
||||||
port: ${REDIS_PORT:6379}
|
port: ${REDIS_PORT:6379}
|
||||||
prefix: ${REDIS_PREFIX:nowchess}
|
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:
|
nowchess:
|
||||||
internal:
|
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}
|
host: ${REDIS_HOST:localhost}
|
||||||
port: ${REDIS_PORT:6379}
|
port: ${REDIS_PORT:6379}
|
||||||
prefix: ${REDIS_PREFIX:nowchess}
|
prefix: ${REDIS_PREFIX:nowchess}
|
||||||
|
internal:
|
||||||
|
secret: ${INTERNAL_SECRET:123abc}
|
||||||
|
|
||||||
"%test":
|
"%test":
|
||||||
quarkus:
|
quarkus:
|
||||||
@@ -39,3 +41,17 @@ nowchess:
|
|||||||
host: localhost
|
host: localhost
|
||||||
port: 6379
|
port: 6379
|
||||||
prefix: test-store
|
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
|
host: localhost
|
||||||
port: 6379
|
port: 6379
|
||||||
prefix: nowchess
|
prefix: nowchess
|
||||||
|
internal:
|
||||||
|
secret: ${INTERNAL_SECRET:123abc}
|
||||||
|
|
||||||
"%dev":
|
"%dev":
|
||||||
nowchess:
|
nowchess:
|
||||||
@@ -37,3 +39,17 @@ nowchess:
|
|||||||
publickey:
|
publickey:
|
||||||
location: ${JWT_PUBLIC_KEY_PATH:keys/public.pem}
|
location: ${JWT_PUBLIC_KEY_PATH:keys/public.pem}
|
||||||
issuer: nowchess
|
issuer: nowchess
|
||||||
|
|
||||||
|
"%staging":
|
||||||
|
quarkus:
|
||||||
|
swagger-ui:
|
||||||
|
always-include: true
|
||||||
|
dev-ui:
|
||||||
|
always-include: true
|
||||||
|
log:
|
||||||
|
level: INFO
|
||||||
|
|
||||||
|
"%production":
|
||||||
|
quarkus:
|
||||||
|
log:
|
||||||
|
level: WARN
|
||||||
|
|||||||
Reference in New Issue
Block a user