gitlab-ci

Gitlab Pages throw 404 when accessed

浪子不回头ぞ 提交于 2021-01-28 04:20:44
问题 I have a group project with the following name (hosted in Gitlab): gitlab.com/my-group/my-project. I have generated coverage reports during testing and saved them as artifacts using Gitlab CI. Here is Gitlab CI config: test: stage: test image: node:11 before_script: - npm install -g yarn - yarn cache: paths: - node_modules/ script: - yarn lint - yarn test --all --coverage src/ except: - tags artifacts: paths: - coverage/ coverage: '/Statements\s+\:\s+(\d+\.\d+)%/' deploy-pages: stage: deploy

How to successfully install fbprophet via Gitlab CI?

随声附和 提交于 2021-01-28 01:31:13
问题 I am trying to deploy a code of mine (that uses fbprophet) as an EC2 instance using Gitlab CI. my requirements.txt file: -i https://pypi.org/simple cmdstanpy==0.4 convertdate==2.2.1 cycler==0.10.0 cython==0.29.21; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3' ephem==3.7.7.1 fbprophet==0.6 holidays==0.10.3 joblib==0.16.0; python_version >= '3.6' kiwisolver==1.2.0; python_version >= '3.6' korean-lunar-calendar==0.2.1 lunarcalendar==0.0.9; python_version >= '2.7' and

Gitlab-runner in docker-compose cannot connect http://docker:2375/v1.40/info

纵然是瞬间 提交于 2021-01-28 00:31:26
问题 Short story: I have a gitlab-runner in a docker-compose and I want to be able to use DIND, but I'm facing some difficulties.... I try to create a platform which contains : a sonar gitlab ce gitlab runner a registry Theses services are started and managed by docker-compose I use the gitlab-ci to verify tests, coverage and create a docker image which is uploaded to the registry I have a single shared runner which work for testing purpose here is the config.toml : concurrent = 1 check_interval =

How to detect compiler warnings in gitlab CI

旧城冷巷雨未停 提交于 2021-01-27 20:06:23
问题 In the steps of setting up CI builds on our gitlab server, I can't seem to find information on how to set up the detection of compiler warnings. Example build output: [100%] Building CXX object somefile.cpp.o /home/gitlab-runner/builds/XXXXXXX/0/group/project/src/somefile.cpp:14:2: warning: #warning ("This is a warning to test gitlab") [-Wcpp] #warning("This is a warning to test gitlab") ^ However the build result is success instead of warning or something similar. Ideally the results wuold

GitLab CI stuck on running NodeJS server

末鹿安然 提交于 2021-01-27 14:33:54
问题 I'm trying to use GitLab CI to build, test and deploy an Express app on a server (the Runner is running with the shell executor). However, the test:async and deploy_staging jobs do not terminate. But when checking the terminal inside GitLab, the Express server does indeed start. What gives ? stages: - build - test - deploy ### Jobs ### build: stage: build script: - npm install -q - npm run build - knex migrate:latest - knex seed:run artifacts: paths: - build/ - node_modules/ tags: - database

How to get Gitlab merge request description in Gitlab CI?

人走茶凉 提交于 2021-01-27 14:12:37
问题 I want to fetch the description of the merge request to generate changelog. Is it possible to get the description?? 回答1: In GitLab CI/CD's predefined environment variables there are some variables related to merge requests, such as: CI_MERGE_REQUEST_ASSIGNEES CI_MERGE_REQUEST_CHANGED_PAGE_PATHS CI_MERGE_REQUEST_CHANGED_PAGE_URLS CI_MERGE_REQUEST_ID CI_MERGE_REQUEST_IID CI_MERGE_REQUEST_LABELS CI_MERGE_REQUEST_PROJECT_PATH CI_MERGE_REQUEST_PROJECT_URL CI_MERGE_REQUEST_REF_PATH CI_MERGE_REQUEST

How to get Gitlab merge request description in Gitlab CI?

跟風遠走 提交于 2021-01-27 14:01:35
问题 I want to fetch the description of the merge request to generate changelog. Is it possible to get the description?? 回答1: In GitLab CI/CD's predefined environment variables there are some variables related to merge requests, such as: CI_MERGE_REQUEST_ASSIGNEES CI_MERGE_REQUEST_CHANGED_PAGE_PATHS CI_MERGE_REQUEST_CHANGED_PAGE_URLS CI_MERGE_REQUEST_ID CI_MERGE_REQUEST_IID CI_MERGE_REQUEST_LABELS CI_MERGE_REQUEST_PROJECT_PATH CI_MERGE_REQUEST_PROJECT_URL CI_MERGE_REQUEST_REF_PATH CI_MERGE_REQUEST

GitLab CI: “Permission denied” when pulling private composer package

亡梦爱人 提交于 2021-01-27 13:51:37
问题 I'm trying to setup CI with GitLab but I'm getting this build error: [RuntimeException] Failed to execute git clone --no-checkout 'git@***.git' '/builds/***' && cd '/builds/***' && git remote add composer 'git@***.git' && git fetch composer Cloning into '/builds/***'... Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the

Pushing Docker image from gitlab-ci to Azure Container Registry

霸气de小男生 提交于 2021-01-27 10:43:59
问题 I am familiar with docker in docker (dind) but using along with microsoft/azure-cli image throw docker command not found . Here is my setup for gitlab-ci.yml file. I have created Service Principal which is used to authenticate to azure cloud and respective resource group. image: docker:latest variables: PASSWORD: ********* TENANT_ID: *****-************-************* APP_ID: *********-*****-***** CLIENT_ID: **************** ACR_ID: ******************* stages: - build - deploy services: -

Pushing Docker image from gitlab-ci to Azure Container Registry

与世无争的帅哥 提交于 2021-01-27 10:43:21
问题 I am familiar with docker in docker (dind) but using along with microsoft/azure-cli image throw docker command not found . Here is my setup for gitlab-ci.yml file. I have created Service Principal which is used to authenticate to azure cloud and respective resource group. image: docker:latest variables: PASSWORD: ********* TENANT_ID: *****-************-************* APP_ID: *********-*****-***** CLIENT_ID: **************** ACR_ID: ******************* stages: - build - deploy services: -