Skip to content

Commit 571377a

Browse files
committed
Add env variables.
1 parent bb45da9 commit 571377a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
env:
6161
TAG_LATEST: ${{ needs.set_vars.outputs.TAG_LATEST }}
6262
TAG_ENV_COMMIT: ${{ needs.set_vars.outputs.TAG_ENV_COMMIT }}
63+
API_BASE_URL: ${{ vars[format('APP_{0}_API_BASE_URL', needs.set_vars.outputs.APP_ENV)] }}
64+
API_AUTH_KEY: ${{ secrets[format('APP_{0}_API_AUTH_KEY', needs.set_vars.outputs.APP_ENV)] }}
6365
steps:
6466
- name: Checkout code
6567
uses: actions/checkout@v2
@@ -79,7 +81,9 @@ jobs:
7981

8082
- name: Read Secrets
8183
run: |
82-
touch .env
84+
echo "API_BASE_URL=${API_BASE_URL}" >> .env
85+
echo "SUPABASE_KEY=${SUPABASE_KEY}" >> .env
86+
echo "API_AUTH_KEY=${API_AUTH_KEY}" >> .env
8387
mv .env ${{ env.DOT_ENV_FILE_NAME }}
8488
8589
- name: Copy env file to DEV Server

sample.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
API_BASE_URL=""
2+
API_AUTH_KEY=""

0 commit comments

Comments
 (0)