aboutsummaryrefslogtreecommitdiff
path: root/.gitpod.yml
diff options
context:
space:
mode:
authorYarden Shoham2022-10-12 19:17:04 +0300
committerGitHub2022-10-12 12:17:04 -0400
commitb474730cf602991e0d7b8ca8e346d84e909f33ec (patch)
treea5b946973eba8aaf2bf8950fcc7f32e7b611e667 /.gitpod.yml
parenta902af75f480a5629f0747cd65531107e4897e4e (diff)
Refactor Gitpod configuration to improve quick spin up of automated dev environments (#21411)
This commit instructs Gitpod to run `docs` in watch mode in fresh development environments so any dev could start hacking in seconds. Also included some vscode extensions for Vue, Go, and Docker. Try it here: [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/yardenshoham/gitea/tree/gitpod) Signed-off-by: Yarden Shoham <hrsi88@gmail.com> Co-authored-by: Gusted <williamzijl7@hotmail.com>
Diffstat (limited to '.gitpod.yml')
-rw-r--r--.gitpod.yml13
1 files changed, 9 insertions, 4 deletions
diff --git a/.gitpod.yml b/.gitpod.yml
index eb3114ce0..55a12cc9e 100644
--- a/.gitpod.yml
+++ b/.gitpod.yml
@@ -1,5 +1,3 @@
-image: gitpod/workspace-full:latest
-
tasks:
- name: Setup
init: |
@@ -16,10 +14,13 @@ tasks:
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
+ echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini
+ echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini
export TAGS="sqlite sqlite_unlock_notify"
make watch-backend
+ - name: Run docs
+ before: sudo bash -c "$(grep 'https://github.com/gohugoio/hugo/releases/download' Makefile | tr -d '\')" # install hugo
+ command: cd docs && make clean update && hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
vscode:
extensions:
@@ -28,7 +29,11 @@ vscode:
- golang.go
- stylelint.vscode-stylelint
- DavidAnson.vscode-markdownlint
+ - johnsoncodehk.volar
+ - ms-azuretools.vscode-docker
ports:
- name: Gitea
port: 3000
+ - name: Docs
+ port: 1313