Skip to content

Commit

Permalink
build: 환경변수 시크릿 -> 일반으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
thgee committed Jul 25, 2024
1 parent 60ee240 commit 5daf186
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/fb-hosting-admin-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ jobs:
- name: Create .env file
if: ${{steps.diff-check.outputs.diff == 'true'}}
run: |
jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' <<< "$SECRETS_CONTEXT" > .env
jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' <<< "$VARS_CONTEXT" > .env
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}
VARS_CONTEXT: ${{ toJson(vars) }}

- name: Install Dependencies and Build
if: ${{steps.diff-check.outputs.diff == 'true'}}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/fb-hosting-admin-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ jobs:
- name: Create .env file
if: ${{ steps.diff-check.outputs.diff == 'true' }}
run: |
jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' <<< "$ENVIRONMENT" > .env
echo "::debug::${{toJson(vars)}}"
jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' <<< "$VARS_CONTEXT" > .env
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}
VARS_CONTEXT: ${{ toJson(vars) }}

- name: Install Dependencies and Build
if: ${{ steps.diff-check.outputs.diff == 'true' }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/fb-hosting-service-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ jobs:
- name: Create .env file
if: ${{steps.diff-check.outputs.diff == 'true'}}
run: |
jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' <<< "$SECRETS_CONTEXT" > .env
jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' <<< "$VARS_CONTEXT" > .env
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}
VARS_CONTEXT: ${{ toJson(vars) }}

- name: Install Dependencies and Build
if: ${{steps.diff-check.outputs.diff == 'true'}}
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/fb-hosting-service-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ jobs:
- name: Create .env file
if: ${{ steps.diff-check.outputs.diff == 'true' }}
run: |
jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' <<< "$vars" > .env
echo "$vars"
jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' <<< "$VARS_CONTEXT" > .env
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}
VARS_CONTEXT: ${{ toJson(vars) }}

- name: Install Dependencies and Build
if: ${{ steps.diff-check.outputs.diff == 'true' }}
Expand Down

0 comments on commit 5daf186

Please sign in to comment.