Skip to content

Commit

Permalink
cicd: use right syntax to get env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorian committed Sep 22, 2024
1 parent bc8f4a3 commit cb3cde8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb3cde8

Please sign in to comment.