|
| 1 | +# Docker image |
| 2 | +image: tplcom/gitpod-drupal-workspace |
| 3 | + |
| 4 | +# ddev and composer are running as part of the prebuild |
| 5 | +# when starting a workspace all docker images are ready |
| 6 | +tasks: |
| 7 | + - name: ddev |
| 8 | + before: |
| 9 | + bash gitpod-setup-ddev.sh |
| 10 | + init: |
| 11 | + export DDEV_NONINTERACTIVE=true |
| 12 | + ddev composer install |
| 13 | + command: |
| 14 | + gp await-port 8080 && gp preview $(gp url 8080) |
| 15 | + |
| 16 | +# VScode xdebug extension |
| 17 | +vscode: |
| 18 | + extensions: |
| 19 | + - felixfbecker.php-debug |
| 20 | + - bmewburn.vscode-intelephense-client |
| 21 | + - ziyasal.vscode-open-in-github |
| 22 | + - dbaeumer.vscode-eslint |
| 23 | + - eamodio.gitlens |
| 24 | + - EditorConfig.EditorConfig |
| 25 | + - esbenp.prettier-vscode |
| 26 | + - stylelint.vscode-stylelint |
| 27 | + - tombonnike.vscode-status-bar-format-toggle |
| 28 | + - mhutchie.git-graph |
| 29 | + |
| 30 | +ports: |
| 31 | + # Used by projector |
| 32 | + - port: 6942 |
| 33 | + onOpen: ignore |
| 34 | + visibility: private |
| 35 | + - port: 8080 |
| 36 | + onOpen: ignore |
| 37 | + visibility: public |
| 38 | + # Currently un-notified and unsupported mailhog http port |
| 39 | + - port: 8025 |
| 40 | + onOpen: ignore |
| 41 | + visibility: private |
| 42 | + # Currently un-notified and unsupported mailhog https port |
| 43 | + - port: 8026 |
| 44 | + onOpen: ignore |
| 45 | + visibility: private |
| 46 | + # Currently un-notified and unsupported phpmyadmin http port |
| 47 | + - port: 8036 |
| 48 | + onOpen: ignore |
| 49 | + visibility: private |
| 50 | + # Currently un-notified and unsupported phpmyadmin https port |
| 51 | + - port: 8037 |
| 52 | + onOpen: ignore |
| 53 | + visibility: private |
| 54 | + # router http port that we're ignoring. |
| 55 | + - port: 8888 |
| 56 | + onOpen: ignore |
| 57 | + visibility: private |
| 58 | + # router https port that we're ignoring. |
| 59 | + - port: 8889 |
| 60 | + onOpen: ignore |
| 61 | + visibility: private |
| 62 | + # xdebug port |
| 63 | + - port: 9000 |
| 64 | + onOpen: ignore |
| 65 | + visibility: private |
| 66 | + # projector port |
| 67 | + - port: 9999 |
| 68 | + visibility: private |
| 69 | + |
| 70 | +github: |
| 71 | + prebuilds: |
| 72 | + # enable for the master/default branch (defaults to true) |
| 73 | + master: true |
| 74 | + # enable for all branches in this repo (defaults to false) |
| 75 | + branches: true |
| 76 | + # enable for pull requests coming from this repo (defaults to true) |
| 77 | + pullRequests: true |
| 78 | + # enable for pull requests coming from forks (defaults to false) |
| 79 | + pullRequestsFromForks: true |
| 80 | + # add a check to pull requests (defaults to true) |
| 81 | + addCheck: true |
| 82 | + # add a "Review in Gitpod" button as a comment to pull requests (defaults to false) |
| 83 | + addComment: true |
| 84 | + # add a "Review in Gitpod" button to the pull request's description (defaults to false) |
| 85 | + addBadge: true |
| 86 | + # add a label once the prebuild is ready to pull requests (defaults to false) |
| 87 | + addLabel: true |
0 commit comments