Skip to content

Commit

Permalink
Enable services key in .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Dec 9, 2023
1 parent 89f1321 commit e4116d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ build-image:
# 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.23-dind
services:
- docker:20.10.23-dind
variables:
DOCKER_DRIVER: overlay2
# DOCKER_HOST: unix:///var/run/docker.sock # For stateless builds, uncomment this, or set it in CI/CD variables
rules:
# Run on all branches except master, when .trigger is added or modified
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != "master"
Expand Down

0 comments on commit e4116d2

Please sign in to comment.