Gitlab CI can't connect to service

I am trying to run an integration test against my containers on gitlab. To keep things as minimal as possible, here are the relevant parts of my .gitlab-ci.yml image: ubuntu:latest coverage:

View details »

GitLab merge request into GitHub?

My code is on GitHub, but I use GitLab CI. I set up GitLab CI/CD external repo and linked my GitHub. I set up GitLab Pull mirroring to get changes from my GitHub. Since my CI is on GitLab, I am wor

View details »

How to use protected enviroment variables from gitlab CI/CD inside serverless script?

For security reasons i need to set up protected enviroment variables in gitlab CI/CD, the problem is that in the documentation only mentions how to use inside the .gitlab-ci.yml file, but not in th

View details »

Heroku App Crashed After pushing and releasing by gitlab-ci

I have deployed a Django application on Heroku server. I have pushed my project without migrations and database manually by Heroku CLI. Then, pushing by Gitlab ci (which does the migrations before p

View details »

Gitlab CI/CD pipeline job failed

I'm trying to follow GitLab CI/CD Pipeline Configuration Reference, yet running into following error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon r

View details »

.netrc not being used in GitLab CI server

I'm trying to create a CI/CD pipeline, in particular an automated deployment job. In the deploy stage I push my image to Heroku. First, we need to authenticate with Heroku. This is done by placing

View details »

How to define the environment variable in environments url [Gitlab CI]

Help, please. I have problems when using the CI tool. Here's my .gitlab-ci.yaml stages: - test test: stage: test environment: name: test url: https://word.mymusise.com/env_test.txt

View details »

Node and npm not getting recognized after getting installed from shell script in gitlab ci

I am trying to install nodejs using a shell script file named install-nodejs.sh in gitlab ci job in pipeline. Installation is successful and node displays the version while within install-nodejs.sh

View details »

Build a React Docker Image with env vars and GitlabCI

I have a react app that is using a .env file that is not part of git as it contains credentials. When I build my react app with docker manually: docker build --no-cache -f docker/prod/Dockerfile

View details »

Get latest tag in .gitlab-ci.yml for Docker build

I want to add a tag when building a Docker image, I'm doing this so far but I do not know how to get the latest tag on the repository being deployed. docker build -t company/app . My goal doc

View details »

How to deploy a maven repository on gitlab to heroku

I created a .gitlab-ci.yml file and tried to deploy my maven repository on gitlab to heroku. Unfortunately I don't understand how to do this without the heroku-cli (which I could not install on gitl

View details »

Gitlab Ci gradlew: does not exist and --remove not passed

I follow this link to implement a simple Gitlab ci in my sample project. this is my Gitlab ci config image: openjdk:8-jdk variables: ANDROID_COMPILE_SDK: "28" ANDROID_BUILD_TOOLS: "28.0

View details »

Run GitLab CI job only when a branch is merged

I'm trying to implement semantic versioning leveraging GitLab CI as follow. On every branch merged, bump the MINOR i.e 1.1.x to 1.2.x On every commit pushed, bump the PATCH i.e 1.5.5 to 1.5.6 My

View details »

Gitlab runner pulling submodule from wrong URI

I run a local instance of Gitlab on my server which I am in the process of setting up to support CI for a project of mine. I'm using a custom docker image that is based on Ubuntu 18.04 LTS and is av

View details »

Only allow merge request from dev branch to master branch and disallow other branch to merge directly to master branch in Gitlab CI/CD?

I am thinking of a setup where there will be three types of branches. These are the following: master = which is the master/release dev = which where all the development goes to and get merge to

View details »

How do I create an artifact so it will be available for download in .gitlab-ci.yml

I have a GitLab ci pipeline and I am not sure how to get it to generate an artifact with the binary file that happened in the build stage. Here is my yml file... stages: - test - build - art

View details »

reading a file from resources not working in gitlab CI

I am getting an error while running tests using the command: ./gradlew clean test I am using test containers to run my tests: https://www.testcontainers.org/modules/docker_compose/ Here is the c

View details »