Skip to content

Commit

Permalink
[IDLE-000] production cd script 디버깅
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjunYou committed Sep 16, 2024
1 parent 8309c8f commit e30d568
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/prod-server-deployer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,14 @@ jobs:
jq -s '.[0] * .[1]' <(echo "$VARS_CONTEXT") <(echo "$SECRETS_CONTEXT") \
| jq -r 'to_entries | map("\(.key)=\(.value)") | .[]' > .env
- name: Check for environment variables with spaces
- 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: |
for var in $(printenv | grep -E '^[^=]+=.*\s+.*' | cut -d '=' -f 1); do
echo "Environment variable with spaces: $var"
done
printenv
- name: Run Docker
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit e30d568

Please sign in to comment.