Skip to content

Instantly share code, notes, and snippets.

@jbrunton
Last active August 16, 2020 18:03
Show Gist options
  • Save jbrunton/15adb8fb530452927eb389b1b4e1d489 to your computer and use it in GitHub Desktop.
Save jbrunton/15adb8fb530452927eb389b1b4e1d489 to your computer and use it in GitHub Desktop.
ytt - remove compose build context
services:
api:
build:
context: /path/to/my/repo/services/api
client:
build:
context: /path/to/my/repo/services/client
depends_on:
- api
- nginx
- postgres
foo:
bar: baz
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.all
---
services:
#@overlay/match by=overlay.all,expects="1+"
_:
#@overlay/match missing_ok=True
#@overlay/remove
build:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment