Category "gitlab-ci"

How to merge rules on a GitLab CI Job

Let's suppose I have this hidden "base" job. .base_job: rules: - if: "$CI_COMMIT_TAG" when: never - if: '$CI_PIPELINE_SOURCE == "web"' I'd like

I am trying to access a gitlab yaml from another project within same group in my main project

Code: include: - project: 'testing-parent-pipeline/Testing-child-push' file: 'script/test.yml' I am getting this error Project testing-parent-pipeline/T

Gitlab Runner Image with GCP credentials

I am trying to teach my Gitlab Runner image to get custom builder images from my private Docker Registry (GCR running in the Google Cloud). What did not work o

Can we combine jobs into one in .gitlab ci/cd yaml file?

This is ci/cd yaml file I using services: - docker:19.03.11-dind workflow: rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_

Activate test coverage for python code on Gitlab

I'm trying to create a .gilab-ci.yml step to activate the gitlab's test coverage with pytest + pytest-cov. Current unsuccessful snippet I've tried: .only-defaul

Gitlab Shell Script Permission Denied

I am running a simple shell script with Gitlab CICD and I am getting Permission denied. Kindly suggest When I do chmod +x test.sh it says operation not permitte

gitlab ci: "No files to upload" for job artifacts

This is my first time trying to generate a gitlab-ci job artifact. My ci script generates a csv file that I want to download as an artifact in the job. The yaml

Is it possible to only trigger a Pipeline if certain files are changed?

I have a project with a working GitLab-CI configuration, but I only want to create and execute a pipeline, when one of my config files are changed. Is there a w

Why did my job get stuck while trying local Gitlab-runner?

I got this Runner has never contacted this instance,what does it mean? I can confirm that I have one. Available specific runners My .gitlab-ci.yml stages:

Is it possible to have gitlab CI trigger another pipeline?

I'm new to gitlab CI so I'm still trying to get my head around it but I'm wondering if it's possible to do the following? Developers work in REPO A QA work in

docker executor vs docker dind image

I am a newbie in gitlabci. I want to understand why do we need docker dind image in order to build a docker image in GitLab CI jobs. Why can't we use the docker

Exporting environment variables from one stage to the next in GitLab CI

Is there a way to export environment variables from one stage to the next in GitLab CI? I'm looking for something similar to the job artifacts feature, only for

How to limit a job in gitlab ci to a tag matching a pattern?

I want to be able to trigger a deployment to a special server every time a tag matching a pattern is pushed. I use the following job definition: # ... deploy

Gitlab-CI with Docker executor /usr/bin/bash: line 90: git: command not found

I have a local GitLab server and gitlab-ci runner with Docker executor. I want to use gitlab-ci to build (for the first stage) my Maven project. Since I use bui

Script command using ":" causing error in .gitlab-ci.yml execution

Below my .gitlab-ci.yml file: image: docker:latest services: - docker:dind stages: - deploy_dev_env Deploy DEV Environment: stage: deploy_dev_e

What kubernetes permissions does GitLab runner kubernetes executor need?

I've installed GitLab runner on a kubernetes cluster under a namespace gitlab-runner. Like so # cat <<EOF | kubectl create -f - { "apiVersion": "v1",

How to deploy Blazor WebAssembly as static site in GitLab Pages

I can't find any guide on how to deploy a Blazor web assembly app to GitLab Pages as a static site. Has anyone managed to do so for .NET 6? I have created a sam

Failed to load config "airbnb" to extend from - gitlab ci

I tried to do and redo the Airbnb eslint installation in various ways, but I always get this build error inside GitLab-ci. It works in my local environment. I c