2
0
forked from jmug/cactoide

fix: add necesery envs

This commit is contained in:
Levente Orban
2025-11-07 13:55:59 +01:00
parent 8a45ad60fb
commit 1faa45e76b
4 changed files with 16 additions and 1 deletions

View File

@@ -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

View File

@@ -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 }}

View File

@@ -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 }}

View File

@@ -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