Skip to content

Commit

Permalink
[IDLE-000] cd env 파일 생성 스크립트 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjunYou committed Oct 31, 2024
1 parent b0a8d90 commit 32e11d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prod-server-deployer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ jobs:
envs: VARS_CONTEXT,SECRETS_CONTEXT
script: |
cd ~/app/docker
jq -s '.[0] * .[1]' <(echo "$VARS_CONTEXT") <(echo "$SECRETS_CONTEXT") \
| jq -r 'to_entries | map("\(.key)=\(.value | gsub("[[:space:]]+$"; ""))") | .[]' > .env
jq -s '.[0] * .[1] | del(.INSTANCE_PEM_KEY)' <(echo "$VARS_CONTEXT") <(echo "$SECRETS_CONTEXT") \
| jq -r 'to_entries | map("\(.key)=\(.value)") | .[]' > .env
- name: Run Docker
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 32e11d3

Please sign in to comment.