gitlab

Building docker images with Jib and Gitlab-CI

試著忘記壹切 提交于 2019-12-25 02:47:02
问题 I am trying to create a pipeline where docker images are created using JIB (via a Maven Plugin) and pushed to my Gitlab Registry. This works fine locally as I am logged into my docker registry. <plugin> <groupId>com.google.cloud.tools</groupId> <artifactId>jib-maven-plugin</artifactId> <version>1.0.0</version> <configuration> <allowInsecureRegistries>true</allowInsecureRegistries> <from> <image>dockerhost/projectgroup/alpine</image> </from> <to> <image>dockerhost/project/imagename:${project

Using jekyll with gitlab pages, it says when it's deploying the website with gitlab CI that theme could not be found, and I already installed it

倾然丶 夕夏残阳落幕 提交于 2019-12-25 01:53:42
问题 My objetive To have a repository with the jekyll site configuration files (but not the _site), and each time I push to the repository, a gitlab pipeline runs. With that pipeline, the site is build with Jekyll (I'm using this theme https://github.com/mmistakes/jekyll-theme-basically-basic) A quick view on the essential files which I'm troubling with Gemfile source "https://rubygems.org" # Hello! This is where you manage which Jekyll version is used to run. # When you want to use a different

stop git from tracking a file without removing the file from other developers machine

我是研究僧i 提交于 2019-12-25 01:45:14
问题 I have a file name settings.py. In my host machine settings.py has a different configuration with that of other developers. I want to stop git from tracking settings.py but not to delete this file from other developers machine when ever they pull changes in the project Some people talk about including the file in .git/info/exclude folder. But i have no idea as where to locate this file. I searched for it in my project folder( where git has been initialize). To no avail. expected result When

Git - How to bind changes of multiple MRs under a new release tag / version?

◇◆丶佛笑我妖孽 提交于 2019-12-25 01:14:50
问题 my current workflow to handle and resolve issues in GitLab is the following (I will define the problem after it): create a milestone with connected release tag via Release API connect issues to the milestone automatically create MRs and branches connected to the issue via GitLab UI (for consistent naming) Make MR changes Merge MR and close the issue automatically The problem here is how I handle the tag. Its absolutely not a part of the updates workflow because when I create it, it gets the

Pipeline is not failing when fail occurs inside python script

妖精的绣舞 提交于 2019-12-25 00:41:07
问题 So - I am writing a script for running iOS tests based on changes in project (not important to topic probably). Within the script, there is a command, which will run the tests: cmd = "xcodebuild -workspace xxx.xcworkspace -scheme xxx -destination 'platform=iOS Simulator,name={0},OS=latest' -configuration Debug -derivedDataPath {1} test-without-building {2} -parallel-testing-enabled NO -enableCodeCoverage YES | xcpretty".format(os.environ['TEST_SIMULATOR_NAME'], os.environ['PWD'], result) and

gitlab仓库的克隆和提交

你说的曾经没有我的故事 提交于 2019-12-24 21:48:26
最近开始学习java,学习的过程中总结了从gitlab克隆代码到本地及修改代码够推送到个人库,在由个人库请求合并到主库的整个流程,再此仅是个人笔记。打开自己想要克隆代码的工作文件夹,右键git bash here。 一、gitlab克隆代码到本地(此处为HTTP克隆) 1、克隆个人库代码到本地 #克隆代码到本地 $ git clone http://XXX个人库XXX.git 2、cd进入项目文件夹 $ cd XXXXXX 3、查看本地和远程主机的全部分支(可不执行) $ git branch -a 4、将该Gitlab版本仓库添加到本机的远程列表中,upstream是主库名称可自定义 $ git remote add upstream http://XXX主库XXX.git 5、更新主库代码:pull更新,以防在开发过程中,远程被别人更新过新版本代码,upstream与上一步自己填写的主库名称保持一致 $ git pull upstream master 6、查看当前远程仓库 git remote -v 二、本地提交修改代码到个人库 1、右键git bash here,cd到或者打开XXXX盘目录,右键git bash here $ cd XXXXXX 2、用于显示工作目录和暂存区的状态,红色部分为自己本地修改的代码文件路径 $ git status 3、需要先更新主库代码

how to install gitlab on a directadmin server

♀尐吖头ヾ 提交于 2019-12-24 20:53:31
问题 I have a VPS with directadmin and few other websites on it, i want to install gitlab without damaging other sites. currently tried but it will show up on all domains. it seems external_url is ignored completely. 回答1: it took me a day to figure out how to do it and i'm gonna share it with others, hope it helps! if you're a beginner like me you should know these two things: 1- all the configurations are in /etc/gitlab/gitlab.rb 2- every time you change gitlab.rb you have to run gitlab-ctl

GitLab cloning via SSH always prompts for password

人走茶凉 提交于 2019-12-24 20:50:31
问题 I've already followed the guide in setting up ssh key pairs on my own local machine (where i plan to clone my source from GitLab). However, every time i executing git clone git@mygitlab-ce.locadomain.com i am always prompted to input my password. I expect to input nothing and automatically clone my source. Since i set the ssh-keygen command to have NO passphrase. I have read in the GitLab guide some workarounds and debugging methods. Nothing works so far. I would like to ask any of you guys

Upload artifact to gitlab maven repository

我的未来我决定 提交于 2019-12-24 20:29:14
问题 I tried to used https://docs.gitlab.com/ee/user/project/packages/maven_repository.html to host my aar file, I followed exact same as the documentations yet I failed to upload the aar. I've setting the pom.xml like this : <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0<

Gitlab have an error: remote unpack failed: eof before pack header was fully read

為{幸葍}努か 提交于 2019-12-24 19:33:23
问题 Does anyone encounter this error in Gitlab and know how to fix it? $ git push origin development.XxXx Enter passphrase for key '/u/.ssh/id_rsa': Enumerating objects: 16318, done. error: remote unpack failed: eof before pack header was fully read error: failed to push some refs to 'git@gitlab.com:Project/GitName.git' I check in the forum with this link error: remote unpack failed: eof before pack header was fully read but it doesnt fully address my problem; because i dont have any fatal: