2021-09-20 21:00:25 +00:00
|
|
|
---
|
2022-03-15 21:03:26 +00:00
|
|
|
image:
|
|
|
|
file: .gitpod.Dockerfile
|
2021-09-08 17:39:30 +00:00
|
|
|
# Commands to start on workspace startup
|
|
|
|
tasks:
|
2022-03-15 21:03:26 +00:00
|
|
|
- init: |
|
|
|
|
pnpm install
|
|
|
|
pnpm run build
|
|
|
|
command: |
|
|
|
|
[[ ! -z "$ASTRO_NEW" ]] && gp await-port 23000 && cd "$GITPOD_REPO_ROOT"/examples/"$ASTRO_NEW" && code src/pages/index.astro && pnpm start
|
2021-09-20 21:00:25 +00:00
|
|
|
vscode:
|
|
|
|
extensions:
|
2022-03-15 21:03:26 +00:00
|
|
|
- astro-build.astro-vscode
|
2021-09-20 21:00:25 +00:00
|
|
|
- esbenp.prettier-vscode
|
|
|
|
- dbaeumer.vscode-eslint
|
2022-03-15 21:03:26 +00:00
|
|
|
ports:
|
|
|
|
- port: 3000
|
|
|
|
onOpen: open-preview
|
2021-09-20 21:00:25 +00:00
|
|
|
github:
|
|
|
|
prebuilds:
|
|
|
|
# enable for the master/default branch (defaults to true)
|
|
|
|
master: true
|
|
|
|
# enable for all branches in this repo (defaults to false)
|
|
|
|
branches: true
|
|
|
|
# enable for pull requests coming from this repo (defaults to true)
|
|
|
|
pullRequests: true
|
|
|
|
# enable for pull requests coming from forks (defaults to false)
|
|
|
|
pullRequestsFromForks: true
|
|
|
|
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
|
|
|
|
addComment: true
|
|
|
|
# add a "Review in Gitpod" button to pull requests (defaults to false)
|
|
|
|
addBadge: false
|
|
|
|
# add a label once the prebuild is ready to pull requests (defaults to false)
|
|
|
|
addLabel: prebuilt-in-gitpod
|