After researching about different CI i decided to use Gitlab to build and deploy my application which is a set Spring boot applications using Spring cloud. I have installed Gitlab on prem. on our build server and installed gitlab-runner on test-server which is running the application inside docker. unfortunately the test server doesnt have access to internett and i cant build application by maven. I am a bit confused on how i can use gitlab to build and deploy my project.
Right now i do the building manually in following steps
On my pc
- Build the project by
mvn clean install
- Build docker images by
docker-compose build
- Push the docker images to docker-hub with
docker-compose push
on the test server
- pull images from docker-hub
docker-compose pull
- run application in docker
docker-compose up
What is the best approach to use gitlab on my project?