diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 6ce65f6..e767881 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -30,6 +30,9 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GIT_PERSONAL_ACCESS_TOKEN }} + - name: Load secrets and save to app.env + run: ${{ github.APP_ENV }} | jq -r > app.env + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a70b57..f79682c 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: bank_db - POSTGRES_USER: root - POSTGRES_PASSWORD: root + POSTGRES_DB: ${{ github.POSTGRES_DB }} + POSTGRES_USER: ${{ github.POSTGRES_USER }} + POSTGRES_PASSWORD: ${{ github.POSTGRES_PASSWORD }} ports: - 5432:5432 # Set health checks to wait until postgres has started