Boa noite, estou com um erro quando vou rodar o build-project e não sei como resolver, segue: Segue meu código: image: docker:stable
stages:
- pre-build
- build
- test
- deploy
build-docker: services:
docker:dind retry: 2 before_script:
docker info
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
stage: pre-build script:
docker build -t minha-imagem .
docker tag minha-imagem esrons/imagem:latest
docker push esrons/imagem:latest
build-project: image: esrons/imagem:latest services:
docker:dind
mysql:5.7 variables: MYSQL_USER: $DB_USER MYSQL_PASSWORD: $DB_PASSWORD MYSQL_DATABASE: $DB_DATABASE MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
DB_NAME: $DB_DATABASE DB_USER: $DB_USER DB_PASSWORD: $DB_PASSWORD DB_PORT: '3306' DB_HOST: 'mysql' SECRET_KEY: $DB_SECRET_KEY stage: build tags:
executor dependencies:
build-docker script:
python manage.py makemigrations
python manage.py migrate
test-project: image: esrons/imagem:latest stage: test services:
docker:dind
mysql:5.7 variables: MYSQL_USER: $DB_USER MYSQL_PASSWORD: $DB_PASSWORD MYSQL_DATABASE: $DB_DATABASE MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
DB_NAME: $DB_DATABASE DB_USER: $DB_USER DB_PASSWORD: $DB_PASSWORD DB_PORT: '3306' DB_HOST: 'mysql' SECRET_KEY: $DB_SECRET_KEY dependencies:
build-project tags:
executor script:
python -m unittest setUp