Skip to main content

Questions tagged [gitlab]

For questions about GitLab, an open source Git repository manager with issue tracking, wiki and continuous integration facilities.

0 votes
0 answers
20 views

Gitlab out of memory kills network on VPS

On a VPS (that is not heavily used) with 4 shared vCPU's and 8GB RAM I'm running the following services: Traefik for reverse proxy Portainer for docker management Gitlab, used by 5 people Grafana ...
Postie's user avatar
  • 113
1 vote
1 answer
40 views

Different Gitlab Runners depending on the Tag/Branch

My Gitlab project is using the Gitlab pipelines, and I would want to use a different Gitlab Runner depending on whether the trigger is a simple push, or e.g. a tag marking a release. The idea is that ...
Markus Erlacher's user avatar
0 votes
1 answer
58 views

How do you preserve conditionally created artifacts (artifacts created with changes)?

Gitlab allows you to run jobs conditionally based on the files being modified using the rules:changes functionality. It looks like this, build: stage: build script: - mkdir dist - echo &...
Evan Carroll's user avatar
  • 2,251
0 votes
1 answer
150 views

How can I download the latest artifact by name, regardless of pipeline status?

I have a job which is maintained by a team, let's call it docs. It runs in a pipeline with jobs maintained by other teams. If the docs team job succeeds, I want to download artifact regardless of the ...
Evan Carroll's user avatar
  • 2,251
0 votes
1 answer
360 views

Stage and jobs blocks breaks gitlab CI with "configuration is invalid: jobs jobs config should implement a script: or a trigger: keyword"

.gitlab-ci.yml with stages: - test jobs: lint: stage: test image: python:3.8 # Assuming same image for both jobs script: - pip install black - black --check . ...
MosQuan's user avatar
0 votes
2 answers
165 views

Restrict access to trigger the GitLab pipeline job

I have a requirement: Only people with the Maintainer access in the repository should have access to trigger the Gitlab pipeline jobs in the respective repository. The developers in the repositories ...
Ajay's user avatar
  • 237
0 votes
0 answers
46 views

Is it possible to update a Merge Request that runs in the parent project with GitLab?

I have a repository called foo and I've forked it into bar. I want to write a pipeline that modifies Merge Requests adding a chore commit such that when bar sends a Merge Request to foo it will run ...
Evan Carroll's user avatar
  • 2,251
0 votes
1 answer
63 views

How can I use `glab api` commands to configure settings that don't have a developed UI?

According to the documentation on Merge Request Pipelines, To prevent users from running new pipelines for fork projects in the parent project use the projects API to disable the ...
Evan Carroll's user avatar
  • 2,251
1 vote
1 answer
787 views

How does $CI_PIPELINE_SOURCE == 'merge_request_event' work?

I have in my gitlab.yml file, rules: - if: $CI_PIPELINE_SOURCE == 'merge_request_event' Before adding that my pipeline was working fine. I just wanted to make it such that the job above was only ...
Evan Carroll's user avatar
  • 2,251
0 votes
1 answer
286 views

When using a Project Access Token, I'm getting "The requested URL returned error: 403"

When I try to use a project access token, I'm getting $ git clone https://asdf:[email protected]/evancarroll/foo.git Cloning into 'foo'... remote: You are not allowed to download code from this project. ...
Evan Carroll's user avatar
  • 2,251
1 vote
2 answers
285 views

How can I push to a repo when CI_JOB_TOKEN doesn't permit it?

Currently, CI_JOB_TOKEN doesn't allow you to push to a repo. When I try I get, remote: You are not allowed to upload code. How can I work around this if I need to push to the repo in the CI? The ...
Evan Carroll's user avatar
  • 2,251
0 votes
2 answers
949 views

What is a "chore commit"?

I've seen the term "chore commit" used in multiple places, what is a chore commit? And it's in the commit message here. chore(gitattributes): ensured consistent line endings across OSs ...
Evan Carroll's user avatar
  • 2,251
0 votes
1 answer
15 views

What can a token with a role of Guest or Reporter do when given scopes to read and write the repository?

If I create a Project Access Token, or Personal Access Token (PAT) token with a role of Guest, and a scope such that it can read_repository and write_repository, what can that token actually do? I'm ...
Evan Carroll's user avatar
  • 2,251
0 votes
1 answer
77 views

Does glab (glab-cli) support creating project access tokens?

I would like to make a chore commit in my CI. Currently, CI_JOB_TOKEN doesn't allow pushing to the repo. The workaround is to create a project access token with write perms. Is it possible to do this ...
Evan Carroll's user avatar
  • 2,251
0 votes
1 answer
66 views

How can I set an environmental variable with glab (glab-cli)?

I would like to set an environmental variable with glab. I don't see the option on glab ci. How can I set an environmental variable?
Evan Carroll's user avatar
  • 2,251

15 30 50 per page
1
2 3 4 5
16