我正在使用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
文件中没有任何更改可能是这种错误出现的原因。
bitbucket-pipelines.yml
文件的内部。 - neverwalkaloner