fix(build): 🐛🔨 extract separate build docker-compose

https://github.com/docker/compose/issues/4047
This commit is contained in:
Collin M. Barrett 2020-09-07 09:27:11 -05:00
parent 1927c4a14c
commit 07f82604ef
3 changed files with 23 additions and 4 deletions

View file

@ -0,0 +1,9 @@
# overrides for production build
# https://github.com/docker/compose/issues/4047
version: "3.7"
services:
web:
build:
context: ./web

View file

@ -15,8 +15,6 @@ services:
web:
image: ghcr.io/collinbarrett/filterlists-web
restart: always
build:
context: ./web
networks:
- reverse-proxy
depends_on:

View file

@ -3,14 +3,26 @@ trigger:
branches:
include: [master]
paths:
include: [web/*, docker-compose.yml, docker-compose.prod.yml]
include:
[
web/*,
docker-compose.yml,
docker-compose.prod.yml,
docker-compose.prod.build.yml,
]
pr:
autoCancel: false
branches:
include: [master]
paths:
include: [web/*, docker-compose.yml, docker-compose.prod.yml]
include:
[
web/*,
docker-compose.yml,
docker-compose.prod.yml,
docker-compose.prod.build.yml,
]
pool:
vmImage: ubuntu-latest