From 4355c6ac2809a2ae8720758aa50a09d74f60cc3f Mon Sep 17 00:00:00 2001 From: Didier Lafforgue Date: Sun, 1 Sep 2024 18:24:38 +0200 Subject: [PATCH] pass the Mongodb credentials to the GH action --- .github/workflows/deploy.yml | 4 +++- config/deploy.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9f25112..f3622c6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,6 +31,8 @@ jobs: DRAGONFLY_SECRET_KEY: ${{ secrets.DRAGONFLY_SECRET_KEY }} MONGODB_URI: ${{ secrets.MONGODB_URI }} + MONGO_INITDB_ROOT_USERNAME: ${{ secrets.MONGO_INITDB_ROOT_USERNAME }} + MONGO_INITDB_ROOT_PASSWORD: ${{ secrets.MONGO_INITDB_ROOT_PASSWORD }} NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }} NEW_RELIC_LOG: stdout @@ -43,7 +45,7 @@ jobs: S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }} SENDGRID_USERNAME: ${{ secrets.SENDGRID_USERNAME }} - SENDGRID_PASSWORD: ${{ secrets.SENDGRID_PASSWORD }} + SENDGRID_PASSWORD: ${{ secrets.SENDGRID_PASSWORD }} steps: - name: Checkout code diff --git a/config/deploy.yml b/config/deploy.yml index 1b8a09e..b9ea0a9 100644 --- a/config/deploy.yml +++ b/config/deploy.yml @@ -75,7 +75,7 @@ env: - SENDGRID_USERNAME - SENDGRID_PASSWORD - MONGO_INITDB_ROOT_USERNAME - - MONGO_INITDB_ROOT_PASSWORD + - MONGO_INITDB_ROOT_PASSWORDE # Use a different ssh user than root # ssh: