Don't use a built container for test postgres
This commit is contained in:
parent
0adcf58555
commit
24b01add82
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -50,13 +50,9 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: test
|
name: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
|
||||||
postgres:
|
|
||||||
image: sfackler/rust-postgres-test:6
|
|
||||||
ports:
|
|
||||||
- 5433:5433
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- run: docker compose up -d
|
||||||
- uses: sfackler/actions/rustup@master
|
- uses: sfackler/actions/rustup@master
|
||||||
with:
|
with:
|
||||||
version: 1.51.0
|
version: 1.51.0
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
version: '2'
|
version: '2'
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: "sfackler/rust-postgres-test:6"
|
image: postgres:14
|
||||||
ports:
|
ports:
|
||||||
- 5433:5433
|
- 5433:5433
|
||||||
|
volumes:
|
||||||
|
- ./docker/sql_setup.sh:/docker-entrypoint-initdb.d/sql_setup.sh
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
FROM postgres:12
|
|
||||||
|
|
||||||
COPY sql_setup.sh /docker-entrypoint-initdb.d/
|
|
Loading…
Reference in New Issue
Block a user