Questions tagged [gitlab]

1

votes
2

answer
1.1k

Views

Can’t find my artifacts with GitLab CI

I'm using a shared runner, on gitlab.com. The guide here shows a section for job artifacts. But when I run my job and look at my job page, I just see this: There's no section for job artifacts. What should I try? Here's my .gitlab-ci.yml: image: node:7.9 stages: - lint - test cache: paths: - node_mo...
giraffe
1

votes
2

answer
259

Views

What would the deploy.sh file look like for Gitlab CI?

In the Docker registry docs on the gitlab Site they give an example where the deploy stage has: deploy: stage: deploy script: - ./deploy.sh only: - master What would the deploy.sh file look like? In either pseudo code or real code.
1

votes
1

answer
2.1k

Views

how to mirror gitlab CE repo on gitlab.com and automatically update?

TLDR; I need to backup a repo and keep it automatically up to date for free. I've got some repos hosted on gitlab.com, free edition. I want to mirror them to any other free online repo store and keep this backup automatically updated when the origin repo on gitlab.com receives and update (push). Are...
Alex Kerr
3

votes
1

answer
44

Views

How do i move a repository with LFS support to gitlab.com?

I have a repository on an old githost instance and i'm trying to migrate it over to gitlab.com. I'm using their instructions for migrating, but because this repository uses LFS, i am getting some errors that i cannot figure out how to resolve. Here are the commands I'm running cd repo git remote ren...
Nicholas Tulach
1

votes
2

answer
1.6k

Views

HTTP url for clone is wrong in GitLab

PROBLEM: When I create a repository in GitLab, it shows different HTTP URL and SSH URL of the repository by some reason. eg) HTTP: http://anotherexample.com/myrepo.git SSH: [email protected]/myrepo.git My gitlab URL is: https: //gitlab.example.com, so SSH is correct and HTTP is wrong. ( another...
leccmo
1

votes
1

answer
464

Views

Is Laravel Envoy necessary when deploying Laravel app with GitLab CI via Continuous Delivery?

I am implementing Continuous Integration into my Laravel workflow, and while going through the basic I came across a sample project on Gitlab where (1.) Laravel Envoys was used to write tasks related to how the app should be deployed and then (2.) bootstrapping the process using Gitlab CI. I got a...
Edmond Tamas
1

votes
1

answer
408

Views

Two gitlab-ci runners for one project

I used to have a project on github with a travis and an appveyor integration service configured. Thus I was able to make sur my project was compiling ok on both OSX and Windows plateform. I'm now working with gitlab and ci runners. I have two runners configured: One on a OSX machine One on a Windows...
Martin Delille
1

votes
1

answer
284

Views

Change navigation theme color in Gitlab

The default indigo color for Gitlab doesn't suit my Header logo. I want to change it to lighter color. Are there are any options to change the navigation theme color or can it changed programatically?
Rajana Deepak
1

votes
1

answer
955

Views

Critical situation in removing a local branch

I using the following command to remove a local branch with force delete option: $ git branch -D My question is, If I delete a local branch that had an upstream set and then do a normal push, it won't delete the remote branch right? What should I do in this situation? [NOTE]: "-D" is force delete o...
Benyamin Jafari
1

votes
1

answer
169

Views

Gitlab CI - Specifying stages in before_script

i want to run a script that is needed for my test_integration and build stage. Is there a way to specify this in the before script so i don't have to write it out twice. before_script: stage: ['test_integration', 'build'] this does not seem to work i get the following error in gitlab ci linter. Stat...
Kay
1

votes
0

answer
15

Views

how does gitlab ci clone repo into docker?

I'm familar with Bamboo but new to gitlab ci, I have tried several times with gitlab and found a key advantage of gitlab is the automatic cloning of git repository. The tricky part is gitlab ci can even clone repository into docker container automatically. my git repo: .git .gitlab-ci.yml foobar...
Lei Yang
0

votes
0

answer
6

Views

Gitlab merge from a specific source branch

I have a branch in gitlab called devops and i want to merge my master branch with devops branch. However, i do not want any other branch to issue a merge request with devops branch. Is it possible? Basically, for devops as the target branch while merging, only master can be the source branch. Can so...
Rahul Desai
0

votes
0

answer
4

Views

cannot validate certificate for <ip-address> because it doesn't contain any IP SANs

I'm working on a GitLab CI pipeline that will deploy my docker stack. I'm trying to set the $DOCKER_HOST to be tcp://DROPLET_IP:2377, but I'm getting an error saying that my certificate does doesn't contain any IP SANs. I'm testing with a Digital Ocean Droplet, so I haven't set a domain name for my...
briancaffey
1

votes
1

answer
64

Views

Signing into my Gitlab CE installation with my app's login

I have a nodejs webapp with many users with a custom login process. I would like gitlab to accept that authentication and not force users to create a new app. What is the best way to accomplish this?
Harry
1

votes
2

answer
1.9k

Views

use elasticsearch in gitlab-ci

I tried to use the elasticsearch service in gitlab -ci by adding: image: python:3.6 services: - elasticsearch:2.4 in my .gitlab-ci.yml Unfortunately it doesn't seem to work (I cannot a connection refused on http://127.0.0.1:9200/). Any idea? I also tried to launch the docker image with: test: script...
millerf
1

votes
1

answer
591

Views

Deployment from Azure web site from GitLab

I followed this article to auto deploy my GitLab master branch to Azure. Under the "Deployment" section in the Azure portal, I selected "Deployment options" -> "Choose Source", which presents these 3 options. Local Git Repository GitHub Bitbucket There is no "External Repository" option as the ar...
gbruins
1

votes
1

answer
726

Views

How to write square brackets in markdown

I need to write in my gitlab project wiki page a code block that contains square brackets. Unfortunately the square brackets are turn into a link. I assume gitlab is using markdown language or the gfm flavor. This is my code: ```javascript "{bla, """", [[foo],[]]}" ``` The foo],[ part is turn into a...
Jiří Lechner
1

votes
2

answer
1.8k

Views

Configuring gitlab-ci.yml for simple java project

I have a simple java project with HelloWorld class , I want to add the GitLab CI/CD for this project by using the .gitlab-ci.yml and runnable configuration files , I am trying to find the reference but am unable to find for simple java project , any help in configuring the above project is apprecia...
user2120524
0

votes
0

answer
4

Views

How to connect private GitLab specs repo from Artifactory

I'm trying to add an Artifactory Cocoapods repository to connect external private GitLab service. The URL is like https://git.xxx.io/abc/specs.git I set the Specs Repo URL, the same as URL above since it is a private git repo and documented like this way. Also I have the username and password set fo...
Spootrick
1

votes
0

answer
10

Views

Golang test with external package dependency isn't passing with Gitlab Ci, but pass in local

I have test: package misc var ( Trace *log.Logger Info *log.Logger Warning *log.Logger Error *log.Logger ) func TestFTPGetFilesFromServer(t *testing.T) { misc.InitLogger(4) } with InitLogger is located in another package func InitSimpleLogger(level int) { if level == 1 { Trace = log.New(iout...
Juliatzin del Toro
1

votes
2

answer
381

Views

Gitlab - git clone failed both with ssh and https in macOS

My coworker grant me access to his repository as Master, then i clone it both with SSH and HTTPS, but it always failed : GitLab: The project you were looking for could not be found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository e...
vanio178
1

votes
3

answer
966

Views

How to create a merge request at the end of a successful pipeline in Gitlab?

I'm very new to gitlab and gitlab CI and I have put a pipeline in place that is successfully completing. My master and development branches are protected so a merge request is required so that another dev in the group can review the code and comment before merging. I was wondering if it is possible...
Dark Star1
1

votes
1

answer
735

Views

How do you push to a gitlab repo using a gitlab-ci job?

I am new to GitLab CI/CD jobs, but I'm trying to set up a Python script that when pushed to GitLab, triggers the CI/CD job to run it, and call an internal function that pushes to GitLab again provided that certain criteria are met. So, for example, suppose I have the following: def hasFileInDirector...
Chloe Bennett
1

votes
2

answer
356

Views

How to clone a private git repository into a kubernetes pod using ssh keys in secrets?

I am trying to clone a private git repository(gitLab) into a kubernetes pod, using SSH keys for authentication. I have stored my keys in a secret. Here is the yaml file for the job that does the desired task. Heres the same question, but doesnt give the exact solution : Clone a secure git repo in K...
Rohan Mehto
1

votes
1

answer
68

Views

Docker “Login succeeded” but still cannot push to GCP private registry

I am having issues while I am pushing my docker image to my private GCP registry. I created a new Service account with Owner role from Google Cloud Platform. Then I created a service key and copied the content of the json file (that I downloaded from the Service Account) in the $GCP_SERVICE_KEY vari...
cell-in
1

votes
2

answer
111

Views

gitlab ci cache no matching files

I try to build apk with gitlab runner When I build apk, I don't want download all build pacakage everytime so i try to caching .gradle/caches and .gradle/wrappers following is my gitlab-ci.yml sdk_build_job image: myimage:latest stage: sdk-build script: ... cache: key: gradle-cache - /root/.gradle/c...
Hyung Won Kim
1

votes
1

answer
48

Views

Why can't I just link to site.url?

I have a site that built with Jekyll. I just want my name on the top left corner, part of my header, to link to my home page. It should just link to vivian-duong.gitlab.io. However, when I click on it, I get sent to vivian-duong.gitlab.io/vivian-duong.gitlab.io. And when I click my name again, I get...
vivian
1

votes
2

answer
44

Views

How to make git repository browsable but not clonable?

I would like to potentially show some of my works to future prospective employers. But I do not necessarily want them to just clone and take my work and develop from it. My work is currently just a few HTML & CSS projects, I don't want them to just clone it and develop from it. I would like them to...
K4ll-of-D00ty
0

votes
0

answer
8

Views

git local repo did not get latest commit from remote

On one machine git log show it does not get the latest commits from remote repo git log --oneline -n 3 origin/develop 5a8e6eb xxx 7547c8a xxx 53294b6 xxx On another machine, the correct one, it gets the latest commit 4b45d4b git log --oneline -n 4 origin/develop 4b45d4b (origin/gq_dev, origin/develo...
Qiulang
1

votes
1

answer
125

Views

How to run spring-boot application using GitLab runner?

I have a spring-boot maven application I've been running locally as: mvn spring-boot:run I want to be able to run this in GitLab runner so that when I push the code to master, it automatically copies the latest up there and runs the application. My GitLab runner is configured in shell mode right now...
Rolando
1

votes
1

answer
28

Views

Which path to use for adding a Git remote?

Basically, I want to be able to run git push myserver branchname to have my changes pushed to my server I know I need to add the git repo on my server as a remote branch, and then push to that remote branch However, I don't know which URL to use for the git remote. My website is located at: var/www/...
J. Doe
0

votes
0

answer
4

Views

Where are the permissions for adding user applications?

We have a self-hosted gitlab solution and are trying to integrate a third-party application. For that we created a new account and wanted to set up a new application. But we were greeted by the following screen: 'Adding new applications is disabled in your GitLab instance. Please contact your Gitlab...
user3590007
0

votes
0

answer
7

Views

Setup CI on Gitlab for Flutter

I am trying to setup CI for my flutter project on gitlab but I don't understand where to start or what I have to do. Can anyone help me? Thanks
Pierre Le Brun
1

votes
2

answer
4.1k

Views

Bitnami GitLab 5.0 and git & Eclipse EGit quick start

We have just set up GitLab 5.0 using Bitnami stack and need quick start. By Bitnami default SSH is disabled. That is OK with me, I'd prefer use HTTP. But it seems that GitLab 5.0 doesn't smoothly support HTTP. For example on project page http://192.168.133.99/gitlab/publicproject1, when switching t...
Paul Verest
0

votes
0

answer
4

Views

LFTP reverse mirror to remote server

I'm trying to automate the deployment of my website to a remote server using Gitlab and it's CI/CD facilities. I'm using a static site generator called middleman that generates all the files into a build folder. This works locally, and if I were to manually upload the files it would reflect precisel...
Cigol
1

votes
1

answer
3.3k

Views

add gitlab repository to redmine

I'm try add a gitlab repository to redmine, but when accessing the repository via redmine, this displays the following message: "The entry or revision was not found in the repository." My repo configuration: redmine: 2.4.1 OS: ubuntu edit: test of www-data permissions: [email protected]:~# su www-da...
Miguel Borges
1

votes
2

answer
1.1k

Views

Git clone produces bad packet length error

I have trouble pulling a git repository via ssh on Windows. The repository is on a GitLab Server. I do the following steps: create a public key with ssh-keygen -t rsa -C "[email protected]" save the keys in C:\Users\myUserName\.ssh\keyName run the output of ssh-agent (i.e. export SSH_AUTH_SOCK; ...) ru...
joschuck
1

votes
1

answer
2.1k

Views

GitLab on Wheezy, error while installing Gems, libmysqlclient-dev probably missing but unistallable

So, while I was installing GitLab following the official tutorial I got an error on the Gems installation. Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.11 for inspection. Results logged to /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.11/e...
elect
1

votes
2

answer
745

Views

GitLab hook on push event

Hi anyone have a some script may be for example how I can create hook in GitLab repository to automatically build maven war archive from project after each push request? Please post some example of script! Thanks in advance!
1

votes
2

answer
2.3k

Views

Allow all developers to only do merge requests to master

I wish to do the following: Nobody can push directly to master, any attempt would get rejected. Merge Requests can be made by anyone but not approved by anyone, just admins. Essentially, master is something I want nobody to be able to push to directly, only via pull requests, which only the administ...
Molten Ice

View additional questions