Skip to content

Commit 6962469

Browse files
authored
Create .gitpod.yml
1 parent ad163c2 commit 6962469

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

.gitpod.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
image: drupalpod/drupalpod-gitpod-base:latest
2+
3+
# ddev and composer are running as part of the prebuild
4+
# when starting a workspace all docker images are ready
5+
tasks:
6+
- name: terminal
7+
before: |
8+
ddev config global --instrumentation-opt-in=true
9+
init: |
10+
ddev debug download-images
11+
ddev composer create drupal/recommended-project
12+
ddev drush si demo_umami -y
13+
command: |
14+
echo y | ddev start
15+
if [ -n "$DP_INSTALL_PROFILE" ]; then
16+
ddev drush si "$DP_INSTALL_PROFILE" -y
17+
fi
18+
gp preview $(gp url 8080)
19+
20+
# VScode xdebug extension
21+
vscode:
22+
extensions:
23+
# PHP extensions.
24+
- felixfbecker.php-debug
25+
- wongjn.php-sniffer
26+
- neilbrayfield.php-docblocker
27+
- bmewburn.vscode-intelephense-client
28+
29+
# Twig extensions.
30+
- mblode.twig-language-2
31+
32+
# Bash extensions.
33+
- timonwong.shellcheck
34+
- rogalmic.bash-debug
35+
36+
# Set the following ports public
37+
ports:
38+
# Used by ddev - local db clients
39+
- port: 3306
40+
onOpen: ignore
41+
# Used by MailHog
42+
- port: 5000
43+
onOpen: open-preview
44+
- port: 6006
45+
onOpen: open-preview
46+
- port: 6942
47+
onOpen: ignore
48+
- port: 8027
49+
onOpen: ignore
50+
# Used by phpMyAdmin
51+
- port: 8036
52+
onOpen: ignore
53+
# Direct-connect ddev-webserver port that is the main port
54+
- port: 8080
55+
onOpen: ignore
56+
# Ignore host https port
57+
- port: 8443
58+
onOpen: ignore
59+
# xdebug port
60+
- port: 9003
61+
onOpen: ignore
62+
63+
github:
64+
prebuilds:
65+
# enable for the master/default branch (defaults to true)
66+
master: true
67+
# enable for all branches in this repo (defaults to false)
68+
branches: true
69+
# enable for pull requests coming from this repo (defaults to true)
70+
pullRequests: true
71+
# enable for pull requests coming from forks (defaults to false)
72+
pullRequestsFromForks: true
73+
# add a check to pull requests (defaults to true)
74+
addCheck: true
75+
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
76+
addComment: true
77+
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
78+
addBadge: true
79+
# add a label once the prebuild is ready to pull requests (defaults to false)
80+
addLabel: true

0 commit comments

Comments
 (0)