gitlab

Connecting to docker-in-docker from a GitLab CI runner

瘦欲@ 提交于 2021-02-04 10:46:16
问题 I have a GitLab pipeline that I want to: Build a Java app Test using docker-compose Push to my Docker repository The primary issue I'm having is that this works : services: - docker:dind docker_test: stage: docker_test image: docker:latest script: - docker version The output is printed as expected: > gitlab-ci-multi-runner exec docker --docker-privileged docker_test ... $ docker version Client: Version: 17.06.0-ce ... Server: Version: 17.06.0-ce ... Build succeeded While this does not

超级生产力:一款集成了 GitHub 的超酷开源待办事项列表应用

馋奶兔 提交于 2021-02-01 11:05:57
“超级生产力”是一款很棒的开源待办事项应用,可以帮助你管理任务、跟踪事务和管理时间。 无论你做什么,提高工作效率是大多数人的共同目标。通常,你总会尝试各种 待办事项列表应用 或者 记事应用 来帮助自己组织和提醒事情,从而高效地跟上工作进度。 当然,你可以看看那些清单,根据自己的喜好去尝试其中的一些。在这里,我遇到了一些独特的东西,如果你想要一个具有可靠的用户界面、GitHub/GitLab 集成以及一系列基本功能的桌面待办事项应用,你也许可以尝试一下。 超级生产力Super Productivity看起来是一个令人印象深刻的待办事项列表应用,并提供一些独特的功能。在本文中,我将让你简单了解它的一切。 超级生产力:一个简单的而有吸引力的开源待办事项应用程序 “超级生产力”是一款开源应用,它由 Johannes Millan 在 GitHub 上积极维护。 对我来说,用户体验是最重要的,“超级生产力”提供的用户界面给我留下了十分深刻的印象。 它还提供了一堆基本功能以及一些有趣的选项。让我们来看看它们。 “超级生产力”的功能 添加待办事项、说明 追踪花费在任务和休息上的时间 项目管理(与 JIRA、GitHub 和 GitLab 整合) 安排任务的能力 语言选择选项 同步到 Dropbox、Google Drive 或任何其他 WebDAV 存储位置 导入/导出功能 自动备份功能

git出现异常处理

橙三吉。 提交于 2021-01-30 01:41:26
这个教程,错过了,就错过了,各位!!! @[toc] 前言 有时候,公司提交的代码必须使用公司邮箱,而你误操作,直接把自己个人邮箱提交上去了,此时你就会遇到这样的需求:如何修改git已提交的邮箱?( 因为有些公司是不允许使用个人邮箱提交代码 ) 异常 master 分支合并到 develop 分支,执行 git push 操作时。 remote: Checking gitlab project <project-6468> remote: Ref <refs heads develop> receiving remote: Commit rev [fde93ea421c8b93b51ebfbd47ec6bebb9641696a] - Invalid commiter email <123@qq.com> remote: Check and confirm : https://wiki.xxx.cn/x/2tGsEw to correct your committer email address To git-biz.xxx.cn:news/test.git ! [remote rejected] develop -> develop (pre-receive hook declined) error: failed to push some refs to 'git-biz.xxx

Gitlab-runner Interactive Web Terminals not connected

蓝咒 提交于 2021-01-29 18:40:36
问题 I have installed successfully a gitlab-runner on a VM, and it is used by some of my projects. I would like to use the Interactive Web Terminal to have a chance to debug when some pipeline fails. I'm trying to configure my config.toml file, following this docu of gitlab but i'm not understanding wich ip addess i should use in the setting listen_address . Should it be the ip of the running machine? The docker container instance? Or what? Here is my current configuration: concurrent = 2 check

surefire results not showing in the test tab of gitlab CI/CD

我是研究僧i 提交于 2021-01-29 17:39:05
问题 I have a java-maven application and I am trying to display my junit results on gitlab as shown in the gitlab help here: https://docs.gitlab.com/ee/ci/junit_test_reports.html#viewing-junit-test-reports-on-gitlab I added the maven-surefire-plugin in the pom build and the maven-surefire-report-plugin in the pom reporting section. I checked that it works because the surefire-report.html is correctly created in my local target repository, with the test results. Then i configured my gitlabci.yaml

Unreachable gitlab page with custom domain

亡梦爱人 提交于 2021-01-29 15:00:57
问题 I created a site with Hugo and I hosted it as a gitlab page. To assign my custom domain I followed the instructions of this document of gitlab. I created three DNS records: one of type A with name @ and value 35.185.44.232 ; one of type TXT with name @ and value _gitlab-pages-verification ... for the verification of the ownership of the domain; one of type A with name www and value 35.185.44.232 . If I access the site using the address https://example.com everything works normally; but if I

One specific nuget package is not getting pushed to gitlab

不打扰是莪最后的温柔 提交于 2021-01-29 13:13:25
问题 I am pushing packages to one of my gitlab repositories. All the packages are pushing fine except for one version of one package. I have three versions of the same package And I am giving this as the source to dotnet nuget push command and 2.0.0 and 2.0.1 packages are pushed successfully while 1.0.1 package is never getting pushed. And it does not give any error, it even shows in the command line that it is trying to push all the three folder packages one by one and showed success for all of

turning a fork to a new branch of an existing branch

扶醉桌前 提交于 2021-01-29 11:47:21
问题 Consider that you have a repository https://gitlab.com/my_repo with at least two branches Master and Develop . You have forked the repo into a private one https://gitlab.com/my_repo_fork . You have applied some edits to the Master branch. Now you want to turn the local Master into a new branch of the original repo, branched from the Develop branch. So What I have https://gitlab.com/my_repo Master Develop https://gitlab.com/my_repo_fork Master * (edited) Develop and what I want to have: https:

Gitlab 12.X - Get project id from storage path in a pre-receive hook

情到浓时终转凉″ 提交于 2021-01-29 11:26:03
问题 With legacy storage, when a pre-receive hook fires, it is easy to guess the URL of the repository involved as the path is "group/project-name.git". With new hashed storage in Gitlab, the "pwd" command will return a path such as d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git if the project id is 2. => How can I get the project id based on the hashed path ? My aim is to check that all the commits being pushed by someone are authored by people who are actually authorized to

Gitlab webui ask password after settings password via gitlab-rails

梦想的初衷 提交于 2021-01-29 10:40:45
问题 After the installation of gitlab i use gitlab-rails to change root password but the webinterface still asks to set a password. If i change the password on the WebUI i can use gitlab-rails to change password. So i used user = User.find_by(email: 'admin@local.host') user.password = 'secret_pass' user.password_confirmation = 'secret_pass' user.save or gitlab_rails['initial_root_password'] = 'nonstandardpassword'in gitlab.rb gitlab-rake gitlab:setup Do you have an idea that how i can initalize