Skip to content

Commit

Permalink
OK-735: Käytetään propertiesissä host_virkailija-muuttujaa
Browse files Browse the repository at this point in the history
  • Loading branch information
heidilm committed Nov 28, 2024
1 parent 477780a commit 20a48d0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,8 @@ jobs:
export ARTIFACT_NAME="ovara-backend"
export BASE_IMAGE="baseimage-fatjar-openjdk21:master"
source ci-tools/common/setup-tools.sh
printf "HELLO\n"
ls ovara-backend
env
mv ovara-backend/target/ovara-backend-*.jar $DOCKER_BUILD_DIR/artifact/${ARTIFACT_NAME}.jar
cp -vr ovara-backend/src/main/resources/application.properties $DOCKER_BUILD_DIR/config/
cp -vr ovara-backend/src/main/resources/oph-configuration/application.properties.template $DOCKER_BUILD_DIR/config/oph-configuration/application.properties.template
./ci-tools/common/pull-image.sh
./ci-tools/github-build/build-fatjar.sh $ARTIFACT_NAME
./ci-tools/github-build/upload-image.sh $ARTIFACT_NAME
18 changes: 9 additions & 9 deletions ovara-backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ server.servlet.context-path=/ovara-backend

# ENVIRONMENT SPECIFIC CONFIG
# DB CONNECTION
spring.datasource.url=jdbc:postgresql://localhost:5432/ovara
spring.datasource.username=app
spring.datasource.password=<password>
spring.datasource.url={{host_postgresql_ovara}}
spring.datasource.username={{ovara_backend_postgresql_username}}
spring.datasource.password={{ovara_backend_postgresql_password}}

# CAS
opintopolku.virkailija.domain=https://virkailija.opintopolku.fi
ovara.backend.url=${opintopolku.virkailija.domain}/ovara-backend
ovara.ui.url=${opintopolku.virkailija.domain}
cas.url=${opintopolku.virkailija.domain}/cas
ovara-backend.cas.username=ovara_backend
ovara-backend.cas.password=<password>
opintopolku.virkailija.domain={{host_virkailija}}
ovara.backend.url=https://${opintopolku.virkailija.domain}/ovara-backend
ovara.ui.url=https://${opintopolku.virkailija.domain}/raportointi
cas.url=https://${opintopolku.virkailija.domain}/cas
ovara-backend.cas.username={{ovara_backend_cas_username}}
ovara-backend.cas.password={{ovara_backend_cas_password}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
spring.application.name=ovara-backend
server.servlet.context-path=/ovara-backend

# ENVIRONMENT SPECIFIC CONFIG
# DB CONNECTION
spring.datasource.url={{host_postgresql_ovara}}
spring.datasource.username={{ovara_backend_postgresql_username}}
spring.datasource.password={{ovara_backend_postgresql_password}}

# CAS
opintopolku.virkailija.domain={{host_virkailija}}
ovara.backend.url=https://${opintopolku.virkailija.domain}/ovara-backend
ovara.ui.url=https://${opintopolku.virkailija.domain}/raportointi
cas.url=https://${opintopolku.virkailija.domain}/cas
ovara-backend.cas.username={{ovara_backend_cas_username}}
ovara-backend.cas.password={{ovara_backend_cas_password}}

0 comments on commit 20a48d0

Please sign in to comment.