From 1faa45e76b0e8984f7bd226c79fb78089f6576a0 Mon Sep 17 00:00:00 2001 From: Levente Orban Date: Fri, 7 Nov 2025 13:55:59 +0100 Subject: [PATCH] fix: add necesery envs --- .env.example | 12 +++++++++++- .github/workflows/build-and-push.yml | 1 + .github/workflows/test.yml | 1 + Dockerfile | 3 +++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 220a21c..df5a7d3 100644 --- a/.env.example +++ b/.env.example @@ -4,10 +4,20 @@ POSTGRES_USER=cactoide POSTGRES_PASSWORD=cactoide_password POSTGRES_PORT=5432 -# Application configuration DATABASE_URL="postgres://cactoide:cactoide_password@localhost:5432/cactoide_database" + +# Application configuration APP_VERSION=latest PORT=5173 HOSTNAME=0.0.0.0 +# Logger configuration +LOG_PRETTY=true +LOG_LEVEL=trace + +# If you don't want to use the default home page you can turn off +# in this case the /discovery page remain the home of your site PUBLIC_LANDING_INFO=true + +# Federation config +FEDERATION_INSTANCE=true diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 4eaa13a..cb0a7ef 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -61,6 +61,7 @@ jobs: context: . file: ./Dockerfile build-args: | + FEDERATION_INSTANCE=${{ vars.FEDERATION_INSTANCE }} PUBLIC_LANDING_INFO=${{ vars.PUBLIC_LANDING_INFO }} LOG_PRETTY=${{ vars.LOG_PRETTY }} LOG_LEVEL=${{ vars.LOG_LEVEL }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index def2b99..7637a95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,7 @@ jobs: - name: Build application run: npm run build env: + FEDERATION_INSTANCE: ${{ vars.FEDERATION_INSTANCE }} PUBLIC_LANDING_INFO: ${{ vars.PUBLIC_LANDING_INFO }} LOG_PRETTY: ${{ vars.LOG_PRETTY }} LOG_LEVEL: ${{ vars.LOG_LEVEL }} diff --git a/Dockerfile b/Dockerfile index 76d4f28..bd72eac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ RUN npm ci ARG PUBLIC_LANDING_INFO ENV PUBLIC_LANDING_INFO=$PUBLIC_LANDING_INFO +ARG FEDERATION_INSTANCE +ENV FEDERATION_INSTANCE=$FEDERATION_INSTANCE + ARG LOG_PRETTY ENV LOG_PRETTY=$LOG_PRETTY