aboutsummaryrefslogtreecommitdiff
path: root/.gitpod.yml
diff options
context:
space:
mode:
authorAnbraten2022-10-11 18:15:14 +0200
committerGitHub2022-10-11 12:15:14 -0400
commit5aceedc7fda39546a1e9fda423eb51a8286f86a7 (patch)
tree764f37754c88e78cdfe4360029d13923ec232b3a /.gitpod.yml
parent9b7675d0cfc48a37bd8638e698df1ed649a64220 (diff)
add gitpod config (#20995)
Add a config for <https://www.gitpod.io/>. This allows users to easily run an online IDE pre-configured to develop and test Gitea by opening <https://gitpod.io/#https://github.com/go-gitea/gitea>. [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/go-gitea/gitea) Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to '.gitpod.yml')
-rw-r--r--.gitpod.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.gitpod.yml b/.gitpod.yml
new file mode 100644
index 000000000..eb3114ce0
--- /dev/null
+++ b/.gitpod.yml
@@ -0,0 +1,34 @@
+image: gitpod/workspace-full:latest
+
+tasks:
+ - name: Setup
+ init: |
+ make deps
+ make build
+ command: |
+ gp sync-done setup
+ exit 0
+ - name: Run frontend
+ command: |
+ gp sync-await setup
+ make watch-frontend
+ - name: Run backend
+ command: |
+ gp sync-await setup
+ mkdir -p custom/conf/
+ echo -e "[server]\nROOT_URL=https://3000-$GITPOD_WORKSPACE_ID.${GITPOD_WORKSPACE_CLUSTER_HOST}/" > custom/conf/app.ini
+ echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = /workspace/gitea/data/gitea.db" >> custom/conf/app.ini
+ export TAGS="sqlite sqlite_unlock_notify"
+ make watch-backend
+
+vscode:
+ extensions:
+ - editorconfig.editorconfig
+ - dbaeumer.vscode-eslint
+ - golang.go
+ - stylelint.vscode-stylelint
+ - DavidAnson.vscode-markdownlint
+
+ports:
+ - name: Gitea
+ port: 3000