Changed so we don't have any volumes for drone to work better
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Lilleman auf Larv 2022-02-14 00:04:55 +01:00
parent 9890f33e30
commit 98af3d9424
3 changed files with 12 additions and 8 deletions

View File

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

@ -0,0 +1,3 @@
FROM amacneil/dbmate:v1.12.1
COPY db /db

View File

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