Skip to content

Commit 607c67d

Browse files
authored
feat: enable push status updates within helios (#767)
1 parent 8ab7c02 commit 607c67d

File tree

6 files changed

+34
-0
lines changed

6 files changed

+34
-0
lines changed

.github/workflows/deploy_docker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ jobs:
120120
echo "MAIL_PORT=${{ vars.MAIL_PORT }}" >> .env
121121
echo "EMAIL_ENABLED=${{ vars.EMAIL_ENABLED }}" >> .env
122122
echo "EMAIL_FROM=${{ vars.EMAIL_FROM }}" >> .env
123+
124+
echo "CLEANUP_WORKFLOW_RUN_DRY_RUN=${{ vars.CLEANUP_WORKFLOW_RUN_DRY_RUN }}" >> .env
125+
echo "HELIOS_ENVIRONMENT_NAME=${{ vars.HELIOS_ENVIRONMENT_NAME }}" >> .env
126+
echo "HELIOS_PROD_SECRET_KEY=${{ secrets.HELIOS_PROD_SECRET_KEY }}" >> .env
127+
echo "HELIOS_STAGING_SECRET_KEY=${{ secrets.HELIOS_STAGING_SECRET_KEY }}" >> .env
128+
123129
124130
- name: SSH to VM and Execute Docker-Compose Up
125131
uses: appleboy/[email protected]

compose.prod.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ services:
127127
- HELIOS_TOKEN_EXCHANGE_CLIENT=${HELIOS_TOKEN_EXCHANGE_CLIENT}
128128
- HELIOS_TOKEN_EXCHANGE_SECRET=${HELIOS_TOKEN_EXCHANGE_SECRET}
129129
- DATA_SYNC_RUN_ON_STARTUP=${DATA_SYNC_RUN_ON_STARTUP}
130+
- CLEANUP_WORKFLOW_RUN_DRY_RUN=${CLEANUP_WORKFLOW_RUN_DRY_RUN}
131+
- HELIOS_ENVIRONMENT_NAME=${HELIOS_ENVIRONMENT_NAME}
132+
- HELIOS_PROD_SECRET_KEY=${HELIOS_PROD_SECRET_KEY}
133+
- HELIOS_STAGING_SECRET_KEY=${HELIOS_STAGING_SECRET_KEY}
130134
depends_on:
131135
- postgres
132136
- nats-server

server/application-server/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ dependencies {
5252
implementation 'org.flywaydb:flyway-database-postgresql:11.8.2'
5353
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
5454
implementation 'io.sentry:sentry-spring-boot-starter-jakarta:8.9.0'
55+
// Helios push-based status updates
56+
implementation "de.tum.cit.aet:helios-status-spring-starter:1.0.0"
5557
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
5658
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'
5759
runtimeOnly 'org.postgresql:postgresql'

server/application-server/src/main/resources/application-dev.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ spring:
2222
issuer-uri: ${OAUTH_ISSUER_URL}
2323

2424
helios:
25+
status:
26+
enabled: false
27+
environment-name: ${HELIOS_ENVIRONMENT_NAME}
28+
endpoints:
29+
- url: http://localhost:8080/api/environments/status
30+
secretKey: ${HELIOS_LOCAL_SECRET_KEY:}
2531
clientBaseUrl: "http://localhost:4200"
2632

2733
logging:

server/application-server/src/main/resources/application-prod.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ spring:
2323
issuer-uri: ${OAUTH_ISSUER_URL}
2424

2525
helios:
26+
status:
27+
enabled: true
28+
environment-name: ${HELIOS_ENVIRONMENT_NAME}
29+
endpoints:
30+
- url: https://helios.aet.cit.tum.de/api/environments/status
31+
secretKey: ${HELIOS_PROD_SECRET_KEY:}
32+
- url: https://helios-staging.aet.cit.tum.de/api/environments/status
33+
secretKey: ${HELIOS_STAGING_SECRET_KEY:}
2634
clientBaseUrl: "https://helios.aet.cit.tum.de"
2735

2836
nats:

server/application-server/src/main/resources/application-staging.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ spring:
2323
issuer-uri: ${OAUTH_ISSUER_URL}
2424

2525
helios:
26+
status:
27+
enabled: true
28+
environment-name: ${HELIOS_ENVIRONMENT_NAME}
29+
endpoints:
30+
- url: https://helios.aet.cit.tum.de/api/environments/status
31+
secretKey: ${HELIOS_PROD_SECRET_KEY:}
32+
- url: https://helios-staging.aet.cit.tum.de/api/environments/status
33+
secretKey: ${HELIOS_STAGING_SECRET_KEY:}
2634
clientBaseUrl: "https://helios-staging.aet.cit.tum.de"
2735

2836
nats:

0 commit comments

Comments
 (0)