Category : gitlab-ci

i want to setup a pipeline in Gitlab CI for an Angular application. This is my gitlab-ci.yml file: variables: CLI_VERSION: 9.1.4 stages: – install_dependencies – build – test – build-image-frontend cache: key: ${CI_COMMIT_REF_SLUG} paths: – ./frontend/node_modules – ./frontend/.npm buildFrontend: stage: build image: trion/ng-cli before_script: – cd frontend – npm ci –cache .npm –prefer-offline script: – ..

Read more

We have a Gitlab setup with Sysbox (link to the setup) to avoid running the docker executor on priviledged mode. Currently the services attribute works and we can communicate to it, but containers started with dind are inaccessible. Here’s a minimal .gitlab-ci.yml file to reproduce the problem: docker_gitlab_test: stage: test image: docker:19.03.13 tags: – docker ..

Read more

I am trying to build and run my Docker image using Gitlab CI/CD, but there is one issue I can’t fix even though locally everything works well. Here’s my Dockerfile: FROM <internal_docker_repo_image> RUN apt update && apt install –no-install-recommends -y build-essential gcc COPY requirements.txt /requirements.txt RUN pip install –no-cache-dir –user -r /requirements.txt COPY . /src ..

Read more

I’m using the following docker-compose.yml to run a dockerized GitLab instance with one runner. Both are in the same network. (The bridge name is set explicitly because the firewall rules depend on it.) version: ‘3.9’ services: web: image: ‘gitlab/gitlab-ce:latest’ restart: ‘unless-stopped’ hostname: ‘gitlab.example.com’ ports: – ‘8080:80’ – ‘8022:22’ environment: […] volumes: […] runner: image: ‘gitlab/gitlab-runner:alpine’ ..

Read more

I have this gitlab-ci script, but it seems that it’s only checking out the master branch. I have added files to a different branch, which I run the pipeline on, but those files are not in the Docker image, only those from master, thus I suspect it’s cloning master. # syntax = docker/dockerfile:experimental stages: – ..

Read more