I’m working on a migration of an existing Drupal 8 site to Pantheon from another cloud host. I am very new to the Pantheon community, but have been working with Drupal for over 10 years.
Our code repository is currently in Github, and we use Travis CI to build and deploy. Both this repository and CI tool are owned/maintined by an outside vendor and we’re moving everything in-house, so as part of our migration to Pantheon I am also working on migrating both of those to GitLab. Our site uses Acquia BLT to build front-end artifacts which is part of the reason why I believe we need a CI tool to get the site artifacts ready for deploying to Pantheon.
What I am hoping to accomplish is with the code stored in GitLab, use GitLab CI to deploy to Pantheon. My understanding of the documentation I’ve read leads me to believe we can take artifacts built in GitLab CI and deploy them to Pantheon using Build Tools. Is this correct?
I have installed Terminus and the Build Tools plugin, but I’m not sure how to use that with an existing code repository. The documentation seems to tell me just how to create a new project rather than adding it to an existing project. I did see an option for “–preserve-local-repository " when I run " terminus help build:project:create” which seems to be what I want, but I’m not 100% sure.
Since I’m building a new .gitlab-ci.yml file as well, I was curious if there was a particular image that is best used for that to work well with Pantheon / Build Tools? I saw a Docker Build Tools CI dockerfile, but it seems specific to CircleCI and also includes PHP 7.3 (we’re currently on 7.2). For now, I’m attempting to use php:7.2-fpm.
Further complicating this, our site also uses NodeJS and React and the front-end artifacts are built using Acquia BLT, so the CI tool will need to incorporate those as well.
Does anyone here have experience working with GitLab CI and Pantheon that can help give me a sense of direction and/or let me know if I’m on the right track? Is there any specific training courses that focus on this particular workflow?