Changed so we don't have any volumes for drone to work better
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
9890f33e30
commit
98af3d9424
|
@ -6,11 +6,9 @@ steps:
|
|||
- name: Tests
|
||||
image: docker/compose:1.29.2
|
||||
commands:
|
||||
# - docker-compose run --rm db-migrations
|
||||
# - docker-compose up -d
|
||||
# - docker-compose run --rm tests
|
||||
- pwd
|
||||
- ls -l
|
||||
- docker-compose run --rm db-migrations
|
||||
- docker-compose up -d
|
||||
- docker-compose run --rm tests
|
||||
volumes:
|
||||
- name: docker-sock
|
||||
path: /var/run/docker.sock
|
||||
|
|
3
Dockerfile.migrations
Normal file
3
Dockerfile.migrations
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM amacneil/dbmate:v1.12.1
|
||||
|
||||
COPY db /db
|
|
@ -11,11 +11,14 @@ services:
|
|||
- 5432:5432
|
||||
|
||||
db-migrations:
|
||||
image: amacneil/dbmate:v1.12.1
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.migrations
|
||||
# image: amacneil/dbmate:v1.12.1
|
||||
environment:
|
||||
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/auth?sslmode=disable
|
||||
volumes:
|
||||
- "./db:/db:ro"
|
||||
# volumes:
|
||||
# - "./db:/db:ro"
|
||||
command: ["--wait", "up"]
|
||||
profiles: ["migrations"]
|
||||
depends_on:
|
||||
|
|
Loading…
Reference in New Issue
Block a user