mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: move all images to new GCP project (#18324)
This commit is contained in:
@ -298,7 +298,7 @@ func PGDumpSchemaOnly(dbURL string) ([]byte, error) {
|
||||
"run",
|
||||
"--rm",
|
||||
"--network=host",
|
||||
fmt.Sprintf("gcr.io/coder-dev-1/postgres:%d", minimumPostgreSQLVersion),
|
||||
fmt.Sprintf("%s:%d", postgresImage, minimumPostgreSQLVersion),
|
||||
}, cmdArgs...)
|
||||
}
|
||||
cmd := exec.Command(cmdArgs[0], cmdArgs[1:]...) //#nosec
|
||||
|
@ -26,6 +26,8 @@ import (
|
||||
"github.com/coder/retry"
|
||||
)
|
||||
|
||||
const postgresImage = "us-docker.pkg.dev/coder-v2-images-public/public/postgres"
|
||||
|
||||
type ConnectionParams struct {
|
||||
Username string
|
||||
Password string
|
||||
@ -379,8 +381,8 @@ func openContainer(t TBSubset, opts DBContainerOptions) (container, func(), erro
|
||||
return container{}, nil, xerrors.Errorf("create tempdir: %w", err)
|
||||
}
|
||||
runOptions := dockertest.RunOptions{
|
||||
Repository: "gcr.io/coder-dev-1/postgres",
|
||||
Tag: "13",
|
||||
Repository: postgresImage,
|
||||
Tag: strconv.Itoa(minimumPostgreSQLVersion),
|
||||
Env: []string{
|
||||
"POSTGRES_PASSWORD=postgres",
|
||||
"POSTGRES_USER=postgres",
|
||||
|
Reference in New Issue
Block a user