gitlab-ci-runner

Getting GitLab CI to clone private repositories

别来无恙 提交于 2019-11-28 04:40:16
I have GitLab & GitLab CI set up to host and test some of my private repos. For my composer modules under this system, I have Satis set up to resolve my private packages. Obviously these private packages require an ssh key to clone them, and I have this working in the terminal - I can run composer install and get these packages, so long as I have the key added with ssh-add in the shell. However, when running my tests in GitLab CI, if a project has any of these dependencies the tests will not complete as my GitLab instance needs authentication to get the deps (obviously), and the test fails

Gitlab - failed to authenticate remote server for CI and CD build

半腔热情 提交于 2019-11-28 02:00:47
问题 I am getting " Enter passphrase for /dev/fd/63 " error when my " .gitlab-ci.yml " tries to remote to my Ubuntu server for executing SSH commands. I have created a new variable called " STAGING_PRIVATE_KEY " and the value is the private key that I personally use to SSH to the server, but providing the same key to ".gitlab-ci.yml" fails to authenticate. Below is my yml file: deploy_staging: stage: deploy before_script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client

gitlab 8.2.1, How to use cache in .gitlab-ci.yml

谁都会走 提交于 2019-11-27 14:25:53
问题 I'm trying to use 'cache' in .gitlab-ci.yml (http://doc.gitlab.com/ce/ci/yaml/README.html#cache). My gitlab version is 8.2.1 and my Runner is: $ docker exec -it gitlab-runner gitlab-runner -v gitlab-runner version 0.7.2 (998cf5d) So according to the doc, everything is up to date, but I'm unable to use the cache ;-(. All my files are always deleted. Am I doing something wrong? A cache archive is created, but not passed to the next jobs. Here is my .gitlab-ci.yml $ cat .gitlab-ci.yml stages: -

How to enable maven artifact caching for gitlab ci runner?

99封情书 提交于 2019-11-27 09:45:13
问题 We use gitlab ci with shared runners to do our continuous integration. For each build, the runner downloads tons of maven artifacts. Is there a way to configure gitlab ci to cache those artifacts so we can speed up the building process by preventing downloading the same artifact over and over again? 回答1: Gitlab CI allows you to define certain paths, which contain data that should be cached between builds, on a per job or build basis (see here for more details). In combination with khmarbaise

How to build, push and pull multiple docker containers with gitlab ci?

馋奶兔 提交于 2019-11-26 21:42:56
问题 I have a docker-compose file which builds two containers, a node app and a ngnix server. Now I would like to automate the build and run process on the server with the help of gitlab runners. I am pretty new to CI-related stuff so please excuse my approach: I would want to create multiple repositories on gitlab.com and have a dockerfile for each one of these. Do I now have to associate a gitlab-runner instance with each of these projects in order to build the image, push it to a docker repo

Getting GitLab CI to clone private repositories

蹲街弑〆低调 提交于 2019-11-26 19:28:45
问题 I have GitLab & GitLab CI set up to host and test some of my private repos. For my composer modules under this system, I have Satis set up to resolve my private packages. Obviously these private packages require an ssh key to clone them, and I have this working in the terminal - I can run composer install and get these packages, so long as I have the key added with ssh-add in the shell. However, when running my tests in GitLab CI, if a project has any of these dependencies the tests will not