diff options
Diffstat (limited to 'demo.ick')
-rw-r--r-- | demo.ick | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/demo.ick b/demo.ick new file mode 100644 index 0000000..483f07f --- /dev/null +++ b/demo.ick @@ -0,0 +1,59 @@ +projects: + + - project: stretch_systree + pipelines: + - build_debian_systree + parameters: + debian_codename: stretch + packages: + - build-essential + - git + - jq + artifact_name: stretch_systree + + - project: hello + pipelines: + - prepare_container + - hello + parameters: + systree_name: stretch_systree + +pipelines: + + - pipeline: build_debian_systree + parameters: + - debian_codename + - packages + - artifact_name + actions: + - debootstrap: auto + mirror: http://deb.debian.org/debian + where: host + + - shell: | + apt-get install -y python3 + where: chroot + + - python: | + import os, subprocess + def runcmd(argv, **kwargs): + subprocess.check_call(argv, **kwargs) + runcmd(['apt-get', 'install', '-y'] + params['packages']) + where: chroot + + - archive: workspace + where: host + + # Prepare container for building: get systree from artifact store. + + - pipeline: prepare_container + actions: + - action: populate_systree + where: host + + - pipeline: hello + actions: + - shell: | + echo hello, world + pwd + where: container |