Skip to content

Commit

Permalink
[IDLE-000] 운영 환경 CD 스크립트 디버깅
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjunYou committed Sep 18, 2024
1 parent 65b8d64 commit f4e599f
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/prod-server-deployer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,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("\\s+"; ""))") | .[]' > .env
- name: Print all environment variables
uses: appleboy/ssh-action@master
with:
host: ${{ vars.INSTANCE_HOST }}
username: ${{ vars.INSTANCE_USERNAME }}
key: ${{ secrets.INSTANCE_PEM_KEY }}
script: |
printenv
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 f4e599f

Please sign in to comment.