Skip to content

Commit

Permalink
Merge pull request #311 from zitadel/fix-acceptance-against-prod
Browse files Browse the repository at this point in the history
chore(acceptance): use prod secret on command test:acceptance:prod
  • Loading branch information
eliobischof authored Dec 5, 2024
2 parents e89b873 + 81468d3 commit 5b68487
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ jobs:
if: ${{ matrix.command == 'test:acceptance' }}

- name: Create Cloud Env File
run: echo "${{ matrix.command == 'test:acceptance:prod' && secrets.ENV_FILE_CONTENT_ACCEPTANCE_PROD || secrets.ENV_FILE_CONTENT_ACCEPTANCE_QA }}" | tee apps/login/.env.local acceptance/tests/.env.local > /dev/null
run: |
if [ "${{ matrix.command }}" == "test:acceptance:prod" ]; then
echo "${{ secrets.ENV_FILE_CONTENT_ACCEPTANCE_PROD }}" | tee apps/login/.env.local acceptance/tests/.env.local > /dev/null
else
echo "${{ secrets.ENV_FILE_CONTENT_ACCEPTANCE_QA }}" | tee apps/login/.env.local acceptance/tests/.env.local > /dev/null
fi
if: ${{ matrix.command == 'test:acceptance:qa' || matrix.command == 'test:acceptance:prod' }}

- name: Create Production Build
Expand Down

0 comments on commit 5b68487

Please sign in to comment.