chore: move all images to new GCP project (#18324)

This commit is contained in:
Dean Sheather
2025-06-11 23:06:31 +10:00
committed by GitHub
parent af4a6682b4
commit ae3882a600
10 changed files with 21 additions and 17 deletions

View File

@ -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

View File

@ -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",