gitlab

git (ls-remote) - List “remote” branches ordered by creation date

你说的曾经没有我的故事 提交于 2021-01-28 07:33:17
问题 I know that with the git command below I can list all my "remote" branches... [someone@someone-pc somerepo]$ git ls-remote Username for 'https://somegit.com': someone Password for 'https://someone@somegit.com': From https://somegit.com/somepath/somerepo.git 32b73a94a2ef1be27298a7bbf6670670c9ad4892 HEAD 99cfe797ee2f4cd3fc12ea1aef8dc4ea0f3538c7 refs/heads/a_branch 687332d5e82436d806fea2c22ac5e8772e73b33a refs/heads/b_branch b1d82987dd87b99c505282cbcdf1d4c4d36be2d2 refs/heads/c_branch

In Fedora 33, git operations with ssh id_rsa file fail on GitLab.com

点点圈 提交于 2021-01-28 07:12:19
问题 Since I've installed Fedora 33, any git operation with GitLab.com (and with a different symptom, azure) fail. On GitLab.com I get: git@gitlab.com: Permission denied (publickey,keyboard-interactive). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Azure simply asks for password without showing any errors. 回答1: As suggested in here, the fix for gitlab is to save these lines in ~/.ssh/config file: Host gitlab.com

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

Connection blocked because server only allows public key authentication

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-27 20:00:09
问题 I'm new to using git, and I'm trying to connect to my repo on GitLab. I keep getting the following error message: Received disconnect from 35.231.145.151 port 22:2: Connection blocked because server only allows public key authentication. Please contact your network administrator. Disconnected from 35.231.145.151 port 22 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I've tried to add a new public key, as well as

Gitlab links to “https://gitlab/”

落花浮王杯 提交于 2021-01-27 17:35:41
问题 I installed gitlab in a docker container from the official image gitlab/gitlab-ce:latest . This image has all config in the file gitlab.rb . Https is done by a nginx reverse proxy. My problem is, that when gitlab has an absolute link to itself, it links always to https://gitlab/ . This host also can be seen in the "New group" dialog: Docker call: docker run \ --name git \ --net mydockernet \ --ip 172.18.0.2 \ --hostname git.mydomain.com \ --restart=always \ -p 766:22 \ -v /docker/gitlab

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-runner without Docker

旧时模样 提交于 2021-01-27 12:54:17
问题 I've installed gitlab-runner on ubuntu 16.04 I've set Executor=shell My project is hosted on gitlab.com with a very simple yaml config file : dev: script: - pwd I am not willing to user Docker for the moment Why is the job's log is mentioning docker ? Using Docker executor with image ruby:2.5 ... Pulling docker image ruby:2.5 ... Using docker image ... for ruby:2.5 ... Why is it mentioning a path that does not exist when executing pwd ? $ pwd /builds/my_gitlab_name/my_project_name 回答1: @Sam