From 30cb4a8a4424e3fdb7912b842ceea2c61b2b8419 Mon Sep 17 00:00:00 2001 From: Qarch Date: Mon, 1 Apr 2024 06:06:22 +0330 Subject: [PATCH] hotfix:make-env-for-prod-config --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 9e646b4..7587baf 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -31,7 +31,7 @@ jobs: password: ${{ secrets.GIT_PERSONAL_ACCESS_TOKEN }} - name: Load secrets and save to app.env - run: ${{ secrets.APP_ENV }} | jq -r > app.env + run: $APP_ENV | jq -r > app.env - name: Extract metadata (tags, labels) for Docker id: meta diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9514074..a5b664f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,9 +20,9 @@ jobs: image: postgres:latest # Provide the password for postgres env: - POSTGRES_DB: ${{ secrets.POSTGRES_DB }} - POSTGRES_USER: ${{ secrets.POSTGRES_USER }} - POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + POSTGRES_DB: ${{ vars.POSTGRES_DB }} + POSTGRES_USER: ${{ vars.POSTGRES_USER }} + POSTGRES_PASSWORD: ${{ vars.POSTGRES_PASSWORD }} ports: - 5432:5432 # Set health checks to wait until postgres has started