You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.gitpod.yml 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. tasks:
  2. - name: Setup
  3. init: |
  4. cp -r contrib/ide/vscode .vscode
  5. make deps
  6. make build
  7. command: |
  8. gp sync-done setup
  9. exit 0
  10. - name: Run backend
  11. command: |
  12. gp sync-await setup
  13. if [ ! -f custom/conf/app.ini ]
  14. then
  15. mkdir -p custom/conf/
  16. echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini
  17. echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini
  18. fi
  19. export TAGS="sqlite sqlite_unlock_notify"
  20. make watch-backend
  21. - name: Run frontend
  22. command: |
  23. gp sync-await setup
  24. make watch-frontend
  25. openMode: split-right
  26. - name: Run docs
  27. before: sudo bash -c "$(grep 'https://github.com/gohugoio/hugo/releases/download' Makefile | tr -d '\')" # install hugo
  28. command: cd docs && make clean update && hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
  29. openMode: split-right
  30. vscode:
  31. extensions:
  32. - editorconfig.editorconfig
  33. - dbaeumer.vscode-eslint
  34. - golang.go
  35. - stylelint.vscode-stylelint
  36. - DavidAnson.vscode-markdownlint
  37. - johnsoncodehk.volar
  38. - ms-azuretools.vscode-docker
  39. - zixuanchen.vitest-explorer
  40. - alexcvzz.vscode-sqlite
  41. ports:
  42. - name: Gitea
  43. port: 3000
  44. - name: Docs
  45. port: 1313