Skip to content

Commit

Permalink
Fix (ci): Remove build job services key (#149)
Browse files Browse the repository at this point in the history
For stateful builds (i.e. `DOCKER_HOST=unix:///var/run/docker.sock` mounted from the host), there is no need for a sidecar dockerd service.
  • Loading branch information
leojonathanoh authored Aug 19, 2023
1 parent 569a80f commit a5976e1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ stages:
build-image:
stage: build
image: docker:20.10.18-git
services:
- docker:20.10.18-dind
# See: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker
# For stateless builds, a sidecar dockerd service is needed
# For stateful builds (i.e. DOCKER_HOST=unix:///var/run/docker.sock mounted from the host), a sidecar dockerd service is not needed
# services:
# - docker:20.10.18-dind
rules:
- if: $CI_PIPELINE_SOURCE == "trigger"
- if: $CI_PIPELINE_SOURCE == "web"
Expand Down

0 comments on commit a5976e1

Please sign in to comment.