diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2738f5d..7428594 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: branches: [main, develop] pull_request: branches: [main] + workflow_dispatch: jobs: test: @@ -32,9 +33,9 @@ jobs: run: npm test env: NODE_ENV: test - JWT_SECRET: ci-test-secret-do-not-use-in-production + JWT_SECRET: "${{ secrets.JWT_SECRET }}" STORAGE_BACKEND: json - name: Check for vulnerabilities run: npm audit --audit-level=high - continue-on-error: true + continue-on-error: true \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 766c241..3db3c32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,8 +40,7 @@ USER isms ENV NODE_ENV=production \ PORT=3000 \ JWT_EXPIRES_IN=8h \ - DEV_HEADER_AUTH=false \ - STORAGE_BACKEND=json + DEV_HEADER_AUTH=false EXPOSE 3000 @@ -50,4 +49,4 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \ CMD wget -qO- http://localhost:3000/ui/login.html || exit 1 # Entrypoint erstellt fehlende Unterverzeichnisse und startet den Server -ENTRYPOINT ["./docker-entrypoint.sh"] +ENTRYPOINT ["./docker-entrypoint.sh"] \ No newline at end of file