GitLab CI + CD

Find Docker image for the build

Dependencies:

  • node/npm
  • java8
  • gradle
  • sshpass

For build you can use for example the following image: https://hub.docker.com/r/bulf/ubuntu-java8-gradle-docker/

For deployment you need sshpass, so you can take the following image: https://hub.docker.com/r/ictu/sshpass/

Runner

see GitLab Runner Doc

CI script

see CI yaml docu

  • Secret variables to use in CI script: GitLab -> Settings -> CI / CD -> Secret Variables