quando fiz o exercicio de separar jobs deu erro. segue erro no job no gitlab:
Running with gitlab-runner 13.4.1 (e95f89a0)
on runner-bytebank xXLHe6sG
Resolving secrets
00:00
Preparing the "docker" executor
00:09
ERROR: Failed to remove network for build
ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:985:0s)
meu yml
image: docker:stable
stages:
- pre-build
- build
- test
- deploy
build-docker:
services:
- docker:dind
before_script:
- docker info
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
stage: pre-build
script:
- docker build -t todo-list-img .
- docker tag todo-list-img azosnosredna/gitlab_todolist_img:latest
- docker push azosnosredna/gitlab_todolist_img:latest
build-project:
stage: build
image: azosnosredna/gitlab_todolist_img:latest
tags:
- executor-tarefas
dependencies:
- build-docker
script:
- echo "runner"