mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
build: ♻ misc build updates
This commit is contained in:
parent
43077dd3ec
commit
ae82059eb3
2 changed files with 2 additions and 9 deletions
|
|
@ -6,8 +6,6 @@ services:
|
|||
context: ./services
|
||||
dockerfile: directory/src/FilterLists.Directory.Api/Dockerfile
|
||||
target: test-migrations
|
||||
networks:
|
||||
- directory-migrations-tests
|
||||
volumes:
|
||||
- directory-migrations-tests-results:/app/tests/FilterLists.Infrastructure.Migrations.Tests/TestResults
|
||||
depends_on:
|
||||
|
|
@ -15,16 +13,11 @@ services:
|
|||
|
||||
directory-migrations-tests-db:
|
||||
image: postgres:alpine
|
||||
networks:
|
||||
- directory-migrations-tests
|
||||
environment:
|
||||
POSTGRES_USER: ${DIRECTORY_DB_USER}
|
||||
POSTGRES_PASSWORD: ${DIRECTORY_DB_PASSWORD}
|
||||
POSTGRES_DB: ${DIRECTORY_DB_DATABASE}
|
||||
|
||||
networks:
|
||||
directory-migrations-tests:
|
||||
|
||||
volumes:
|
||||
directory-migrations-tests-results:
|
||||
external: true
|
||||
|
|
|
|||
|
|
@ -153,11 +153,11 @@ steps:
|
|||
dockerComposeCommand: build directory-migrations-tests
|
||||
|
||||
- task: Docker@2
|
||||
displayName: create volume test-migrations-results
|
||||
displayName: create volume directory-migrations-tests-results
|
||||
condition: and(eq(variables['abortJustMigrated.aborted'], 'false'), eq(variables['commitOrAbandon.committed'], 'true'), succeeded())
|
||||
inputs:
|
||||
command: volume
|
||||
arguments: create test-migrations-results
|
||||
arguments: create directory-migrations-tests-results
|
||||
|
||||
- task: DockerCompose@0
|
||||
displayName: up test-migrations db
|
||||
|
|
|
|||
Loading…
Reference in a new issue