From 28ca4e21b4cd24e1849700641e05acdc1b616725 Mon Sep 17 00:00:00 2001 From: Rob Ellison Date: Thu, 29 Jun 2023 09:38:42 +0000 Subject: [PATCH] feat: default redis --- .github/workflows/auto-build.yml | 1 - lib/redis/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index 3b4762f3..5776525d 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -45,7 +45,6 @@ jobs: tags: airwalk-digital/airview-mdx-deck secrets: | "FONTAWESOME_NPM_AUTH_TOKEN=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" - "REDIS_HOST: redis" - name: Release env: diff --git a/lib/redis/index.js b/lib/redis/index.js index ab3160b8..77cb7b39 100644 --- a/lib/redis/index.js +++ b/lib/redis/index.js @@ -37,7 +37,7 @@ let redisInstance; function getRedisConfiguration() { return { - host: process.env.REDIS_HOST, + host: process.env.REDIS_HOST || 'redis', password: process.env.REDIS_PASSWORD, port: process.env.REDIS_PORT, }