125 lines
3.0 KiB
JSON
125 lines
3.0 KiB
JSON
|
|
{
|
||
|
|
"version": "2.0.0",
|
||
|
|
"tasks": [
|
||
|
|
{
|
||
|
|
"label": "Deploy: 자동 배포 (서버 자동 선택)",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "bash",
|
||
|
|
"args": [
|
||
|
|
"C:/Users/User/Desktop/SERVER_ 운영/deploy.sh",
|
||
|
|
"${input:repoName}"
|
||
|
|
],
|
||
|
|
"group": "build",
|
||
|
|
"presentation": {
|
||
|
|
"reveal": "always",
|
||
|
|
"panel": "dedicated",
|
||
|
|
"clear": true
|
||
|
|
},
|
||
|
|
"problemMatcher": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"label": "Deploy: 서버 지정 배포",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "bash",
|
||
|
|
"args": [
|
||
|
|
"C:/Users/User/Desktop/SERVER_ 운영/deploy.sh",
|
||
|
|
"${input:repoName}",
|
||
|
|
"${input:appName}",
|
||
|
|
"${input:serverName}"
|
||
|
|
],
|
||
|
|
"group": "build",
|
||
|
|
"presentation": {
|
||
|
|
"reveal": "always",
|
||
|
|
"panel": "dedicated",
|
||
|
|
"clear": true
|
||
|
|
},
|
||
|
|
"problemMatcher": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"label": "Deploy: 서버 상태 확인",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "bash",
|
||
|
|
"args": [
|
||
|
|
"C:/Users/User/Desktop/SERVER_ 운영/deploy.sh",
|
||
|
|
"status"
|
||
|
|
],
|
||
|
|
"group": "build",
|
||
|
|
"presentation": {
|
||
|
|
"reveal": "always",
|
||
|
|
"panel": "dedicated",
|
||
|
|
"clear": true
|
||
|
|
},
|
||
|
|
"problemMatcher": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"label": "Git: Gitea에 Push",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "git push origin main",
|
||
|
|
"group": "build",
|
||
|
|
"presentation": {
|
||
|
|
"reveal": "always",
|
||
|
|
"panel": "shared"
|
||
|
|
},
|
||
|
|
"problemMatcher": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"label": "Git: Commit + Push + Deploy",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "bash",
|
||
|
|
"args": [
|
||
|
|
"-c",
|
||
|
|
"git add -A && git commit -m '${input:commitMsg}' && git push origin main && bash 'C:/Users/User/Desktop/SERVER_ 운영/deploy.sh' $(basename $(git rev-parse --show-toplevel))"
|
||
|
|
],
|
||
|
|
"group": "build",
|
||
|
|
"presentation": {
|
||
|
|
"reveal": "always",
|
||
|
|
"panel": "dedicated",
|
||
|
|
"clear": true
|
||
|
|
},
|
||
|
|
"problemMatcher": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"label": "Docker: 로컬 빌드 테스트",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "docker build -t ${input:repoName}:test . && docker run --rm -p 8000:8000 ${input:repoName}:test",
|
||
|
|
"group": "test",
|
||
|
|
"presentation": {
|
||
|
|
"reveal": "always",
|
||
|
|
"panel": "dedicated"
|
||
|
|
},
|
||
|
|
"problemMatcher": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"id": "repoName",
|
||
|
|
"type": "promptString",
|
||
|
|
"description": "Gitea 레포 이름 (예: fastapi-demo)",
|
||
|
|
"default": ""
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "appName",
|
||
|
|
"type": "promptString",
|
||
|
|
"description": "Coolify 앱 이름 (비워두면 레포이름 사용)",
|
||
|
|
"default": ""
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "serverName",
|
||
|
|
"type": "pickString",
|
||
|
|
"description": "배포 서버 선택",
|
||
|
|
"options": [
|
||
|
|
"worker-ai",
|
||
|
|
"worker-downsys",
|
||
|
|
"worker-kakao2"
|
||
|
|
],
|
||
|
|
"default": "worker-ai"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "commitMsg",
|
||
|
|
"type": "promptString",
|
||
|
|
"description": "커밋 메시지",
|
||
|
|
"default": "update"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|