few tweaks to cicd, and fix in Dockerfile

This commit is contained in:
Ronald A. Richardson
2024-07-22 16:19:07 +08:00
parent 708babb81c
commit 0c96386cf1
2 changed files with 13 additions and 1 deletions

View File

@@ -139,6 +139,18 @@ jobs:
fi
working-directory: ./console
- name: Set Env Variables for QA
if: startsWith(github.ref, 'refs/heads/deploy/qa')
run: |
echo "STRIPE_KEY=${{ secrets.STRIPE_TEST_KEY }}" >> ./console/environments/.env.production
working-directory: ./console
- name: Set Env Variables for Production
if: startsWith(github.ref, 'refs/heads/deploy/production')
run: |
echo "STRIPE_KEY=${{ secrets.STRIPE_KEY }}" >> ./console/environments/.env.production
working-directory: ./console
- name: Install dependencies
run: pnpm install
working-directory: ./console