mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(build): 🐛🔨 extract separate build docker-compose
https://github.com/docker/compose/issues/4047
This commit is contained in:
parent
1927c4a14c
commit
07f82604ef
3 changed files with 23 additions and 4 deletions
9
docker-compose.prod.build.yml
Normal file
9
docker-compose.prod.build.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# overrides for production build
|
||||
# https://github.com/docker/compose/issues/4047
|
||||
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: ./web
|
||||
|
|
@ -15,8 +15,6 @@ services:
|
|||
web:
|
||||
image: ghcr.io/collinbarrett/filterlists-web
|
||||
restart: always
|
||||
build:
|
||||
context: ./web
|
||||
networks:
|
||||
- reverse-proxy
|
||||
depends_on:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue