Questions tagged [gitlab]

GitLab stands as a remarkable Git repository manager, offering unprecedented features like issue tracking, wiki functionality, and continuous integration. If you are seeking assistance regarding the GitLab API or related programming questions, feel free to utilize this tag! However, please bear in mind that inquiries concerning general usage shall be deemed off-topic.

Encountering the error message 'array expected for services config' within my GitLab CI/CD pipeline

My goal is to set up a pipeline in GitLab for running WebdriverIO TypeScript and Cucumber framework tests. I am encountering an issue when trying to execute wdio.conf.ts in the pipeline, resulting in this error: GitLab pipeline error Below is a snippet of ...

Employing a tool in the upcoming project that is scheduled to execute on an SSH runner in GitLab encounters issues

Currently, I am utilizing the self-managed version 14.6 of GitLab. In my .gitlab-ci.yaml pipeline file, I have defined two jobs: build and deploy. The build job runs on a docker executor through gitlab-runner and generates an artifact named build/, which c ...

Why is GitLab Runner not recognizing my custom npm registry and instead using the default npm registry?

After setting up a gitlab runner on my Windows machine, I input the command "npm config set registry http://my/custom/npm/registry" in the terminal. Then, I triggered a pipeline on the gitlab web page. However, when I checked the terminal using the comman ...

Setting up reverse proxy rules for GitLab on a Node.js Express server can be achieved using the following

I am currently in the process of developing a Node.js application to serve a private GitLab server. Initially, I had it set up with Apache, but now I am looking to switch over to using my Node.js application instead. Most of the functionality is there. Th ...

Encountering issues while deploying a Vue.js application on an Ubuntu server using GitLab Runner

Currently, I am in the process of deploying an application from a GitLab repository to a server running Ubuntu 20.04. The GitLab runner is registered and operational, with all SSH keys added accordingly. Although I have created the .gitlab-ci.yml file, I e ...

Encountering an SSH issue while attempting to deploy to Digital Ocean using Gitlab's CI/CD functionality

Hey there, I've been attempting to deploy to Digital Ocean using a Gitlab CI/CD pipeline. However, every time I run the pipeline, I encounter the following error message: "chmod: /root/.ssh/id_rsa: No such file or directory $ chmod og= ~/.ssh/id_rsa C ...

Install NPM without changing directories to the folder

Currently, I am using Windows Powershell and a pipeline to create the package for an application deployment. Here is the pipeline setup: https://i.stack.imgur.com/am2iR.png My current obstacle revolves around the "npm install" command, as I want to avoid ...

When attempting to build Next.js in standalone mode with Turborepo versions greater than 1.2.6, the process gets stuck and does not complete the Gitlab CI pipeline task

I am currently working on a project in a monorepo using pnpm workspaces and turborepo to handle the scripts within the monorepo. Initially, all individual projects were functioning correctly as they are nextjs projects. However, when I upgraded turborepo ...

Encountering an error while trying to publish with npm, resulting in

my .npmrc @bytap:registry=https://gitlab.com/api/v4/packages/npm/ '//gitlab.com/api/v4/packages/npm/:_authToken'="${GITLAB_AUTH_TOKEN}" '//gitlab.com/api/v4/projects/37004905/packages/npm/:_authToken'="${GITLAB_AUTH_TOKEN}" the conten ...

Excluding Gitlab's node_modules from the .gitignore: How to modify and upload a module?

I've added node_modules to .gitignore but now I need to update a module (Searchbar from reactnativeelements). What's the best and cleanest way to push this change to my GitLab repository? Creating a separate folder for the complete module and updating al ...

Tips for utilizing a private GitLab repository as an npm dependency with a private token via https

I am attempting to incorporate a private GitLab repository as an npm dependency in my node.js application using a private token key. My configuration looks something like this: "dependencies": { "my-module": "git+https://<privateToken>:x-oauth- ...

Encountered an error with Git authentication on Ubuntu while trying to access via

I am facing an issue with my package.json file as it has a dependency from our internal gitlab server. When I try to clone it using 'git clone https://...' git prompts me for a username and password. After providing the credentials, the package clones suc ...

Clone a git project locally to a subdirectory within another project

Let me get straight to the point: ** background ** A few months ago, I started a project for a non-profit organization with some friends. Due to our non-charging nature, a couple of friends had to leave the project as they were swamped with their actual ...

Encountered an error while attempting to compile a Node.js application for deployment on

Hello there! I encountered a peculiar issue after reinstalling everything on my laptop. Now, I'm facing trouble every time I try to push to Heroku using this package.json configuration. { "name": "mrfrederiksen", "version": "0.0.0", "license": "MI ...

Error encountered while attempting to publish package to npm registry through Gitlab, resulting in a 422 Unprocessable

I have run into an issue while attempting to publish a basic example to our gitlab npm registry. Despite updating all necessary information such as names, projectId, and token, I keep encountering the following error: npm ERR! 422 Unprocessable Entity - ...

Can projects be published on npm and installed from a specific directory?

Currently working on an Angular library project, I am exploring the possibility of publishing the entire library alongside a pre-built angular application either on gitlab or npm. However, my concern lies in ensuring that when a user installs the library v ...

"Tips for SunPass Finesse: Navigating ESLint Errors When Committing Code on

While attempting to commit changes to my dev branch in Gitlab, I encountered errors related to ESLint which caused the commit to be aborted. To troubleshoot, I cloned the repository from the dev branch, made changes, and installed dependencies using &apos ...

Issues with GitLab's npm registry performance

My attempts to publish a test for an npm package have been unsuccessful. I've named the package in my package.json file as "@username/package_name" and set up the publishConfig object like this: "publishConfig": { "@username:registry&quo ...

What is the process of adding a private Git library to an npm project?

I am currently working on a project that has its own private project library accessible directly to me at . In the package.json file, it is required like this: "dependencies": { "@some-project/some-utils": "0.1.42", ...

GitLab CI: The cached node_modules are not being recognized by npm

Many users online are discussing issues with Gitlab caching, but in my experience, Gitlab CI actually caches correctly. However, npm seems to reinstall everything regardless. cache: key: ${CI_COMMIT_REF_SLUG} paths: - vendor/ - bootstrap/ ...

Can a npm package be installed from a sub-directory within a private GitLab repository?

Initially, my query differs from Install npm module from gitlab private repository We manage our own npm modules, each residing in its own sub-folder within a collective repository named my_node_modules.git. Is there a way to install a single npm module f ...

Collaborate on a single file across multiple git repositories to allow for updates from multiple users

I'm currently in the process of automating the markdown spell check for all documents on my website, which are spread across multiple git repositories. I have a .spelling file that includes all the words to be excluded from the documents. My goal is t ...

Initiating node server, undertaking another task, then shutting down server on Gitlab CI

I have set up a GitLab Runner using Shell and my gitlab-ci.yml file includes the following configuration. In the before_script section, it installs necessary packages and starts the node server using "start npm run start" to prevent it from getting stuck a ...

Guide on creating a single build in GitLab for a Vue application using multiple .env files

I currently have a .gitlab-ci.yml file set up to build my Vue application. The process involves building once and then deploying the dist folder to different environments: stages: - build - deploy_dev - deploy_stg - deploy_prd build: image: no ...

The Angular build process was successful on a local machine, however, the Angular build failed when

I am facing a challenge with my Angular project that I want to deploy on Gitlab Pages. Initially, when I execute: ng build --prod locally, the build is successful. Below is my .gitlab-ci.yaml: image: node:8.12.0 pages: cache: paths: - node_mo ...

Change the package version on GitLab using Husky during a merge request

When I attempt to update the package version upon making a merge on Gitlab, I encountered issues despite using Husky for this purpose. { "hooks":{ "pre-commit": "npm run lint:fix", "post-merge": " ...

Set up Renovate Bot to utilize a personalized NodeJS image options

Utilizing a self-hosted Renovate Bot instance within an air-gapped GitLab environment to manage NodeJS module updates has presented some challenges for me. Despite thoroughly reviewing the documentation, I'm unclear on how to configure the bot to prevent d ...

Tests using Cypress for end-to-end testing are failing to execute in continuous integration mode on gitlab.com

Challenges with Setting Up Cypress in Gitlab CI We have been facing difficulties setting up Cypress in the CI runners of gitlab.com using the default blueprint from vue-cli to scaffold the project. Despite trying various configurations in the gitlab.yml f ...

Deploying an npm package to Verdaccio using GitLab CI within a Docker environment

When attempting to publish a module on my private Verdaccio repository from Gitlab CI running in Docker, I encountered an issue. Following this tutorial, I generated the token on my host since the container in which the jobs run does not exist until the pi ...

Retrieve the most recent update of the GitLab repository when specifying it as a dependency in the package.json file

I have a private GitLab repository where I store a NodeJs module with files like package.json and index.js. In another project, I want to include this repository as a dependency using the following syntax: "package-name": "git+ssh://git@gitlab01:path/to/r ...