Hi, I’m a new to gitlab and implementing CI, although I think I understand the principles. I have an existing Drupal 7 site. I’ve moved all the code into a git-lab repository. I want changes on commit to the dev branch to be deployed to a dev environment, and then when I approve a merge request to the master branch, to deploy to production. I may add staging later.
I’ve set up kubernetes on Google Cloud Platform in my gitlab project, but I’ve over-ridden the auto-devops as it doesn’t appear to be set up for PHP.
Whilst I’ve got the pipeline working, I cannot access the environments it creates. Using the terminal I get ‘Connection failure’ and when I go the view the live environment I get ‘default backend - 404’
Any suggestions on what I’m doing wrong or have missed?
Here’s my .gitlab-ci.yml (replaced the ip address with ‘example’) -
stages: - test - staging - production test: stage: test before_script: # Install dependencies - sh ci/docker_install.sh > /dev/null script: - echo "Running tests" - php -v - phpunit --configuration ci/phpunit_bootstrap.xml staging: stage: staging script: - echo "Deploy to dev server" environment: name: dev url: https://dev.example.nip.io/ production: stage: production script: echo "Deploy to live server" environment: name: prod url: https://prod.example.nip.io/ only: - master