O arquivo ".gitlab-ci.yml" está desta forma:
image: docker:stable
services:
- docker:dind
before_script:
- docker info
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
build-docker:
stage: build
script:
- docker build -t minha-imagem .
As variáveis já foram criadas no Gitlab, porém é dado este erro no console:
WARNING: API is accessible on http://0.0.0.0:2375 without encryption.
Access to the remote API is equivalent to root access on the host. Refer
to the 'Docker daemon attack surface' section in the documentation for
more information: https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
$ docker login -u $CI_REGISTRY_USER --password-stdin
Error: Cannot perform an interactive login from a non TTY device
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 1