github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/.gitpod.yml (about)

     1  image: drud/ddev-gitpod-base:20221215
     2  tasks:
     3    - name: build-run
     4      init: |
     5        # Compile ddev
     6        make
     7        cd /tmp && ddev config --auto
     8        ddev debug download-images
     9        ddev delete -Oy tmp
    10        mkcert -install
    11      command: |
    12        export DDEV_NONINTERACTIVE=true
    13        DDEV_REPO=${DDEV_REPO:-https://github.com/drud/d9simple}
    14        DDEV_ARTIFACTS=${DDEV_REPO}-artifacts
    15        git clone ${DDEV_ARTIFACTS} "/tmp/${DDEV_ARTIFACTS##*/}" || true
    16        reponame=${DDEV_REPO##*/}
    17        mkdir -p /workspace/${reponame} && cd /workspace/${reponame}
    18        if [ ! -d /workspace/${reponame}/.git ]; then
    19          git clone ${DDEV_REPO} /workspace/${reponame}
    20        fi
    21        if [ ! -f .ddev/config.yaml ]; then
    22          ddev config --auto
    23        fi
    24        ddev stop -a
    25        ddev start -y
    26        if [ -d "/tmp/${DDEV_ARTIFACTS##*/}" ]; then
    27          ddev import-db --src=/tmp/${DDEV_ARTIFACTS##*/}/db.sql.gz
    28          ddev import-files --src=/tmp/${DDEV_ARTIFACTS##*/}/files.tgz
    29        fi
    30        gp ports await 8080 && sleep 1 && gp preview $(gp url 8080)
    31  
    32  vscode:
    33    extensions:
    34      # Go extension
    35      - golang.go
    36  
    37      # PHP extension
    38      - felixfbecker.php-debug
    39  
    40      # Bash extensions
    41      - timonwong.shellcheck
    42      - rogalmic.bash-debug
    43  
    44  github:
    45    prebuilds:
    46      # enable for the master/default branch (defaults to true)
    47      master: true
    48      # enable for all branches in this repo (defaults to false)
    49      branches: true
    50      # enable for pull requests coming from this repo (defaults to true)
    51      pullRequests: true
    52      # enable for pull requests coming from forks (defaults to false)
    53      pullRequestsFromForks: true
    54      # add a check to pull requests (defaults to true)
    55      addCheck: true
    56      # add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
    57      addComment: false
    58      # add a "Review in Gitpod" button to the pull request's description (defaults to false)
    59      addBadge: true
    60      # add a label once the prebuild is ready to pull requests (defaults to false)
    61      addLabel: true
    62  
    63  ports:
    64    # Ignore host https port
    65    - port: 8443
    66      onOpen: ignore
    67    - port: 3306
    68      onOpen: ignore
    69    # Direct-connect ddev-webserver port that is the main port
    70    - port: 8080
    71      onOpen: ignore
    72    # Currently un-notified and unsupported mailhog https port
    73    - port: 8027
    74      onOpen: ignore
    75    - port: 8036
    76      onOpen: ignore
    77    # xdebug port
    78    - port: 9003
    79      onOpen: ignore