From d4793d9e314e044149bc4f6aeadaf207aa85001a Mon Sep 17 00:00:00 2001 From: wonjunYou Date: Thu, 31 Oct 2024 14:17:16 +0900 Subject: [PATCH] =?UTF-8?q?[IDLE-000]=20cd=20env=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/prod-server-deployer.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prod-server-deployer.yaml b/.github/workflows/prod-server-deployer.yaml index 7338c213..cf998e6b 100644 --- a/.github/workflows/prod-server-deployer.yaml +++ b/.github/workflows/prod-server-deployer.yaml @@ -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