From cb3cde8d2b203ea7eb73f49d4393ea75227a7072 Mon Sep 17 00:00:00 2001 From: Dorian Date: Sun, 22 Sep 2024 20:30:10 -0230 Subject: [PATCH] cicd: use right syntax to get env variables --- .github/workflows/cicd.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 29a2b9e..ae3ea03 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -11,13 +11,12 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v4 - - run: echo Hello ${{ env.APP_HOST }} - name: Generate env file run: | touch .env.prod - echo APP_HOST=${{ env.APP_HOST }} >> .env.prod - echo DATABASE_HOST=${{ env.DATABASE_HOST }} >> .env.prod - echo DATABASE_PORT=${{ env.DATABASE_PORT }} >> .env.prod + echo APP_HOST=${{ vars.APP_HOST }} >> .env.prod + echo DATABASE_HOST=${{ vars.DATABASE_HOST }} >> .env.prod + echo DATABASE_PORT=${{ vars.DATABASE_PORT }} >> .env.prod echo TOKEN_SECRET="${{ secrets.TOKEN_SECRET }}" >> .env.prod echo CRYPTO_KEY="${{ secrets.CRYPTO_KEY }}" >> .env.prod cat .env.prod