From d8576cec00aa410c728d720207315712c1efdf9a Mon Sep 17 00:00:00 2001 From: Qarch Date: Mon, 1 Apr 2024 05:55:46 +0330 Subject: [PATCH] hotfix:make-env-for-prod-config --- .github/workflows/cd.yml | 4 ++-- .github/workflows/ci.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 83c819e..9e646b4 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -1,7 +1,7 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: ci-flow +name: cd-flow on: push: @@ -31,7 +31,7 @@ jobs: password: ${{ secrets.GIT_PERSONAL_ACCESS_TOKEN }} - name: Load secrets and save to app.env - run: ${{ env.APP_ENV }} | jq -r > app.env + run: ${{ secrets.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 c2e179b..9514074 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: cd-flow +name: ci-flow on: push: @@ -20,9 +20,9 @@ jobs: image: postgres:latest # Provide the password for postgres env: - POSTGRES_DB: ${{ env.POSTGRES_DB }} - POSTGRES_USER: ${{ env.POSTGRES_USER }} - POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }} + POSTGRES_DB: ${{ secrets.POSTGRES_DB }} + POSTGRES_USER: ${{ secrets.POSTGRES_USER }} + POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} ports: - 5432:5432 # Set health checks to wait until postgres has started