oxynote/e2e/docker-compose.dev.ci.yaml
2026-08-30 14:58:55 +02:00

29 lines
1015 B
YAML

# layer cache for CI only, applied on top of docker-compose.dev.yaml.
#
# it is a separate file because `type=gha` is meaningless outside a
# GitHub runner — putting it in the main compose file would break every
# local build. The workflow supplies it through E2E_DEV_COMPOSE_EXTRA.
#
# without this, a runner starts from zero layers and rebuilds the whole
# nuxt image on every run, which is the bulk of the job's wall clock.
#
# there is no prod counterpart, which is why this one is named for the dev
# stack: compose builds nothing in docker-compose.prod.yaml — the
# all-in-one image comes from `docker build` in the Makefile — so its cache
# flags go through PROD_BUILD_EXTRA instead of a compose override.
services:
web:
build:
cache_from:
- type=gha,scope=e2e-web
cache_to:
- type=gha,mode=max,scope=e2e-web
auth-realtime:
build:
cache_from:
- type=gha,scope=e2e-auth-realtime
cache_to:
- type=gha,mode=max,scope=e2e-auth-realtime