Skip to content

Commit

Permalink
[CI] 환경변수(secrets)를 백엔드 환경변수에서 별도로 분리 (#197)
Browse files Browse the repository at this point in the history
* chore: 환경변수(secrets)를 백엔드 환경변수에서 별도로 분리

* chore: 트리거를 pull_request_target으로 변경
  • Loading branch information
SYN0P authored Nov 29, 2021
1 parent b0d453f commit 972a9f0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/testBackend.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Test Backend
###################################
# Required Secret : BACK_ENV, BACK_ORM_CONFIG
###################################

on:
pull_request:
branches: [develop]
pull_request_target:
types: [labeled]
workflow_dispatch:

jobs:
Expand All @@ -22,21 +20,21 @@ jobs:

- name: Create Environment File
run: |
echo "${{ secrets.BACK_ENV }}" >> .env.dev
echo "${{ secrets.TEST_ENV }}" >> .env.dev
working-directory: ./back

- name: Create ORM Config
uses: jsdaniell/[email protected]
with:
name: 'ormconfig.json'
json: ${{ secrets.BACK_ORM_CONFIG }}
json: ${{ secrets.TEST_ORM_CONFIG }}
dir: 'back/'

- name: Create Session Config
uses: jsdaniell/[email protected]
with:
name: 'sessionStoreConfig.json'
json: ${{ secrets.BACK_SESSION_CONFIG }}
json: ${{ secrets.TEST_SESSION_CONFIG }}
dir: 'back/'

- name: Run Test
Expand Down

0 comments on commit 972a9f0

Please sign in to comment.