From 384055b71b1d5b4d839d690322d3e1558a7e31ab Mon Sep 17 00:00:00 2001 From: Stefan Poindl Date: Sat, 9 Nov 2024 16:14:55 +0100 Subject: [PATCH] update runtime config properties --- .github/workflows/cd.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b47a7ea..6660ae8 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -38,11 +38,7 @@ jobs: - name: Build kamifusen run: | - ./gradlew build -Dquarkus.native.enabled=true -Dquarkus.package.jar.enabled=false \ - -Dversion=${{ steps.semver.outputs.semantic-version }} \ - -Dquarkus.http.cors=${{ vars.ALLOW_CORS }} \ - -Dquarkus.http.cors.origins=${{ vars.ALLOWED_ORIGINS }} \ - && echo "quarkus.http.auth.session.encryption-key=${{ secrets.AUTH_ENCRYPTION_KEY }}" >> src/main/resources/application.properties + ./gradlew build -Dquarkus.native.enabled=true -Dquarkus.package.jar.enabled=false - name: Build kamifusen native-micro image run: | @@ -58,9 +54,13 @@ jobs: ghcr.io/tohuwabohu-io/kamifusen:${{ steps.semver.outputs.semantic-version }} \ --image-label ${{ steps.semver.outputs.semantic-version }} --local-only --no-cache \ && flyctl secrets set -a kamifusen --detach \ + QUARKUS_APPLICATION_VERSION=${{ steps.semver.outputs.semantic-version }} \ QUARKUS_DATASOURCE_PASSWORD=${{ secrets.DB_PWD }} \ QUARKUS_DATASOURCE_REACTIVE_URL=${{ secrets.DB_URL }} \ - QUARKUS_DATASOURCE_USERNAME=${{ secrets.DB_USER }} + QUARKUS_DATASOURCE_USERNAME=${{ secrets.DB_USER }} \ + QUARKUS_HTTP_CORS=${{ vars.ALLOW_CORS }} \ + QUARKUS_HTTP_CORS_ORIGINS=${{ vars.ALLOWED_ORIGINS }} \ + QUARKUS_HTTP_AUTH_SESSION_ENCRYPTION_KEY=${{ secrets.AUTH_ENCRYPTION_KEY }} - name: Update kamifusen image version run: |