Open daniel-bytes opened 7 years ago
I think it can just try all kontena.yml's and ignore any failures (= duplicate versions).
find . -name kontena.yml -exec kontena stack registry push {} \;
If you want to just do it for the files included in the latest merge/commit:
git diff --name-only HEAD~1 HEAD | grep kontena.yml | xargs -n1 kontena stack registry push
One issue is that for many of the stacks in this repo, there's also custom Docker images built. I think it would make sense to have some kind of makefile
for each of the stacks. Then we could try to filter out changed stacks and run make
for each during Travis build
Would having something like:
services:
foofoo:
build:
dockerfile: |
FROM xyz:123
..
be useful?
It might be nice to have a Travis CI build that automatically pushes any changed stack yml files to the stack registry.