Skip to content

Commit 2e0dcaa

Browse files
committed
Custom postgres image #2
1 parent d468576 commit 2e0dcaa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
env:
16-
PG_DOCKER_IMAGE: ghcr.io/cloudnative-pg/postgresql:16-bookworm
16+
PG_DOCKER_IMAGE: public.ecr.aws/docker/library/postgres:latest
1717

1818
steps:
1919
- uses: actions/checkout@v4

tests/postgres/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub(super) async fn start_postgres_docker_container(
2929
let port = port.try_into().unwrap_or(15432);
3030

3131
let pg_docker_image = std::env::var("PG_DOCKER_IMAGE")
32-
.unwrap_or_else(|_| format!("{}postgres:latest", "public.ecr.aws/docker/library/"));
32+
.unwrap_or_else(|_| format!("{}postgres:latest", container_registry()));
3333

3434
let running_container = ContainerRunnerBuilder::new(container_name)
3535
.image(pg_docker_image)

0 commit comments

Comments
 (0)