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
|
- name: Tests
|
||||||
image: docker/compose:1.29.2
|
image: docker/compose:1.29.2
|
||||||
commands:
|
commands:
|
||||||
# - docker-compose run --rm db-migrations
|
- docker-compose run --rm db-migrations
|
||||||
# - docker-compose up -d
|
- docker-compose up -d
|
||||||
# - docker-compose run --rm tests
|
- docker-compose run --rm tests
|
||||||
- pwd
|
|
||||||
- ls -l
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker-sock
|
- name: docker-sock
|
||||||
path: /var/run/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
|
- 5432:5432
|
||||||
|
|
||||||
db-migrations:
|
db-migrations:
|
||||||
image: amacneil/dbmate:v1.12.1
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.migrations
|
||||||
|
# image: amacneil/dbmate:v1.12.1
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/auth?sslmode=disable
|
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/auth?sslmode=disable
|
||||||
volumes:
|
# volumes:
|
||||||
- "./db:/db:ro"
|
# - "./db:/db:ro"
|
||||||
command: ["--wait", "up"]
|
command: ["--wait", "up"]
|
||||||
profiles: ["migrations"]
|
profiles: ["migrations"]
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user