kontena / kontena-stacks

Reusable Kontena Stacks
20 stars 9 forks source link

Travis CI build #3

Open daniel-bytes opened 7 years ago

daniel-bytes commented 7 years ago

It might be nice to have a Travis CI build that automatically pushes any changed stack yml files to the stack registry.

kke commented 6 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
jnummelin commented 6 years ago

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

kke commented 6 years ago

Would having something like:

services:
  foofoo:
    build:
      dockerfile: |
        FROM xyz:123
        ..

be useful?