summaryrefslogtreecommitdiff
path: root/demo.ick
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-06-17 22:02:22 +0300
committerLars Wirzenius <liw@liw.fi>2018-06-17 22:02:22 +0300
commit7671cef41d0c2ff3fa946fd4a1bd40fa4f18f746 (patch)
tree9c85fac4322b012e0da6a24d0847076e89915222 /demo.ick
parentc259dab81312307b9ef81bde5dd828074d87ec72 (diff)
downloadliw-ci-7671cef41d0c2ff3fa946fd4a1bd40fa4f18f746.tar.gz
Add: demo.ick
Diffstat (limited to 'demo.ick')
-rw-r--r--demo.ick59
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