디플로이 환경 경로 설정

This commit is contained in:
Lectom C Han
2026-02-04 15:40:09 +09:00
parent d23cfb7c7d
commit c4a4bdaec3
2 changed files with 9 additions and 8 deletions

View File

@@ -20,12 +20,12 @@ jobs:
script: |
set -e
cd ${{ vars.DEPLOY_PATH }}
if [ ! -d .git ]; then
git init
git remote add origin git@gitea.hmac.kr:b24014/kngil_home.git
else
git remote set-url origin git@gitea.hmac.kr:b24014/kngil_home.git
fi
# if [ ! -d .git ]; then
# git init
# git remote add origin ssh://git@127.0.0.1:222/b24014/kngil_home.git
# else
# git remote set-url origin ssh://git@127.0.0.1:222/b24014/kngil_home.git
# fi
cat << 'ENVEOF' > .env
WEB_HOST_PORT=${{ vars.WEB_HOST_PORT }}
DB_HOST=${{ vars.DB_HOST }}
@@ -42,7 +42,6 @@ jobs:
IDP_SERVICE_URL=${{ vars.IDP_SERVICE_URL }}
ENVEOF
# Export variables from .env file
set -a
source .env