我在这个项目中使用了docker和django,gitlabci/cd pipleline和test甚至不会在错误下面启动和退出:
测试一直在运行,直到我在django应用程序中添加了一些测试,然后它失败了django.db.utils.OperationalError: could not translate host name "db" to address: Name or service notpostg
我的gitlabci管道一直失败。我好像被困在这里了。我实际上对CI的事情还很陌生,所以我不知道我做错了什么。下面的帮助将是.gitlab-ci.yml文件 - postgres:latest
POSTGRES_DB# This folder is cached between builds
# http://docs.gitlab.c
我尝试在gitlabci中运行我的django测试python manage.py test。因此,我使用的是docker图像。docker映像可以很好地构建,但当它在gitlab上运行测试时,我会得到ImportError: No module named 'django'和image: registry.g
我正在尝试在gitlab上运行一个用Django制作的python webapp的管道,它使用postgre数据库。安装postgre后,psql命令会显示以下错误: psql: error: could not connect to server: No such file or directory 下面是我的.gitlab-ci.ymlalpine
variables:
P