我正在将Bitbucket管道与PosgreSQL用于CI / CD。根据此文档, PostgreSQL服务已通过bitbucket-pipelines.yml
以下方式进行了描述:
definitions:
services:
postgres:
image: postgres:9.6-alpine
到现在为止一切正常。但是我所有的最新管道均失败,并出现以下错误:
Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD for the superuser. Use
"-e POSTGRES_PASSWORD=password" to set it in "docker run".
You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
without a password. This is *not* recommended. See PostgreSQL
documentation about "trust":
https://www.postgresql.org/docs/current/auth-trust.html
我该如何解决?bitbucket-pipelines.yml
文件中没有任何更改,这可能是此类错误的原因。