Skip to content

Commit

Permalink
feat: add vscode files for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
ferruhcihan committed Jun 21, 2024
1 parent 782cd40 commit 22fb3ef
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
"cwd": "${workspaceRoot}",
"console": "integratedTerminal",
"envFile": "${workspaceFolder}/.env",
"env" : {
"KUBECONFIG": "/path/to/your/kubeconfig.yaml",
"GITEA_URL" : "http://localhost",
"GITEA_URL_PORT" : "8082",
"GITEA_OPERATOR_NAMESPACE" : "gitea-app",
},
"preLaunchTask": "port-forward-gitea"
},
{
"type": "node",
Expand Down
16 changes: 16 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "port-forward-gitea",
"type": "shell",
"command": "export KUBECONFIG=/path/to/your/kubeconfig.yaml && kubectl -n gitea port-forward svc/gitea-http 8082:3000",
"problemMatcher": [],
"isBackground": true,
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}

0 comments on commit 22fb3ef

Please sign in to comment.