Skip to content

Commit

Permalink
Add env variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
karntrehan committed Jun 5, 2024
1 parent bb45da9 commit 571377a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:
env:
TAG_LATEST: ${{ needs.set_vars.outputs.TAG_LATEST }}
TAG_ENV_COMMIT: ${{ needs.set_vars.outputs.TAG_ENV_COMMIT }}
API_BASE_URL: ${{ vars[format('APP_{0}_API_BASE_URL', needs.set_vars.outputs.APP_ENV)] }}
API_AUTH_KEY: ${{ secrets[format('APP_{0}_API_AUTH_KEY', needs.set_vars.outputs.APP_ENV)] }}
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -79,7 +81,9 @@ jobs:

- name: Read Secrets
run: |
touch .env
echo "API_BASE_URL=${API_BASE_URL}" >> .env
echo "SUPABASE_KEY=${SUPABASE_KEY}" >> .env
echo "API_AUTH_KEY=${API_AUTH_KEY}" >> .env
mv .env ${{ env.DOT_ENV_FILE_NAME }}
- name: Copy env file to DEV Server
Expand Down
2 changes: 2 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
API_BASE_URL=""
API_AUTH_KEY=""

0 comments on commit 571377a

Please sign in to comment.