From 4b27c2faafff9c3fcbf7250dc7323061a4cd1e63 Mon Sep 17 00:00:00 2001 From: Lauro Correia Silveira Date: Thu, 16 Nov 2023 10:30:06 +0100 Subject: [PATCH] Fix deploy Render. Strint connection to mongodb error --- .github/workflows/docker-image.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 0f1fed2..6dd8724 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -11,6 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - + env: + JWT_SECRET: ${{ secrets.JWT_SECRET }} + DATABASE_PRO: ${{ secrets.DATABASE_PRO }} + DATABASE_TEST: ${{ secrets.DATABASE_TEST }} + - name: Build the Docker image run: docker build . --file Dockerfile --tag alura-flix-api:$(date +%s) --build-arg DATABASE_PRO=${{ secrets.DATABASE_PRO }} --build-arg DATABASE_TEST=${{ secrets.DATABASE_TEST }} --build-arg DATABASE_TEST=${{ secrets.DATABASE_TEST }} \ No newline at end of file