Category "gitlab-ci"

How can we change two values dynamically by using one variable? in yaml script?

we are using gitlab for ci/cd we have two branches for frontend dev branch- workflow: rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_B

Gitlab pipeline failing on "Cleaning up project directory and file based variables"

I have a Gitlab pipeline that is failing when it attempts docker build (using Kaniko) I am yet to do a successful docker build BUT this particular error has sta

Modifiy variable values in gitlab-ci.yml

Let's say CI_COMMIT_BRANCH=abc/xyz And .gitlab-ci.yml variables: VAR: ${CI_COMMIT_BRANCH} Is there a way to remove 'abc/' from the value of CI_COMMIT_BRANCH

how to delete resources with terraform?

set up - a lambda project ( see file structure below) in terraform . in my gitlab-ci, in a build step , lambda code is zipped up at the root of the directory. e

How to run a Docker Containers pulled from GitLab Container Registry using Shared Runners?

Basically what I have got working so far is as follows in the following order; Login to GitLab Container Registry Build Docker Containers from docker-compose.ym

GitLab Pages CI cache appears to cache and restore nothing. How do I inspect the cache?

I have a .gitlab-ci.yml that looks like this: image: mcr.microsoft.com/playwright:latest before_script: - apt-get remove nodejs -y - apt-get update - apt-get i

Serverless: Running "serverless" installed locally (in service node_modules)

I am trying to deploy a service to aws using serverless. I am deploying it using gitlab cicd instead of doing it locally. Initially my serverless version was la

Found errors in your .gitlab-ci.yml: unknown keys in `extends`

My code for the pipeline is: include: - template: Terraform/Base.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Terr

why does gitlab runner fail to start "org.freedesktop.systemd1"?

Hey I have a kubernetes cluster for a gitlab ci/cd pipeline. There is a gitlab runner (kubernetes executor) running on it. Sometimes the pipeline passes, but so

GitLab:Merge Request: If multiple MR into Develop but move only my changes to QA branch

There are multiple Merge requests merged into Develop but I want to MR only my changes from develop branch to the QA branch /abc/abc.py ---| /abc/deg.py --

How can I set a minimum unit test coverage with GitLab CI?

I have a project hosted on GitLab that already has working CI configuration. I would like to add the notion of "minimal code coverage". What I would love is to

How do I move Source Code from a local GitLab to AWS GitLab environment using automation?

As a part of my job, I have to automate Sorce code movement from development environment to Production environment. The developers push the code to GitLab that

How to run Gitlab-CI pipelines only branch and tag?

I just want to run pipelines when tagged from main branch. I tried using workflow but it doesn't work. This is my .gitlab-ci.yml file. workflow: rules: -

Docker compose dind deploy to GitLab Registry

I am working on MS Blazor server two projects solution (Core 6) and GitLab. docker-compose.yml file: version: '3.4' services: admin: image: ${DOCKER_RE

Error in gitlab-ci when trying to use hashicorp/dir/template module

I'm getting the error that base_dir is an invalid argument. But according to the documentation on the hashicorp repo, it's a required string. Here's my main.tf:

Get method names and lines from git commit - python

I am wondering if there is a way to get the list of method names that are modified along with modified lines and file path from git commit or if there are any b

What change to my gitlab-ci.yml is required to get past the errors (only default export is available...)

I'm not able to find many postings on this error on GitLab running my gitlab-ci.yml file. These are the 2 dominant error loggings I see in the 3k lines of debug

Generate env specific properties file in gitlab-ci.yml for gitlab runner

I need to automate the CI/CD pipeline for an SpringBoot application. This application has application.properties file which contains few obvious env specific pr

How to send a mail from gitlab after any activity?

We are using gitlab for CI/CD. my colleagues need pipeline, merge request, commit related status. How should I receive the mails from them and how did they rece

Continue running scripts even after exit code 1

I'm trying to run Cypress test in Gitlab. Below is the sample script. After executing 'npm run Cypress', if there is any test case fail, it exits with 'exit cod