Don't use a built container for test postgres

This commit is contained in:
Steven Fackler 2021-10-28 19:08:38 -04:00
parent 0adcf58555
commit 24b01add82
3 changed files with 7 additions and 10 deletions

View File

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

View File

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

View File

@ -1,3 +0,0 @@
FROM postgres:12
COPY sql_setup.sh /docker-entrypoint-initdb.d/