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

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

View File

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