summaryrefslogtreecommitdiff
path: root/architecture.mdwn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-03-25 14:36:01 +0300
committerLars Wirzenius <liw@liw.fi>2018-03-25 14:36:01 +0300
commitee5ac1373bbbc4bd4e7ac32c648d78afab5f3692 (patch)
tree3bd16d95fc9761d9d6367432bd867d5cf8515652 /architecture.mdwn
parent346a137d3a581f4f009f833f046aa0d6e2cd44b1 (diff)
downloadick.liw.fi-ee5ac1373bbbc4bd4e7ac32c648d78afab5f3692.tar.gz
Change: split example project to have two pipelines
Diffstat (limited to 'architecture.mdwn')
-rw-r--r--architecture.mdwn15
1 files changed, 12 insertions, 3 deletions
diff --git a/architecture.mdwn b/architecture.mdwn
index b5bd073..ecad0a4 100644
--- a/architecture.mdwn
+++ b/architecture.mdwn
@@ -66,15 +66,15 @@ This might be expressed as an Ick configuration like this:
git_ref: master
rsync_target: ickliwfi@ick.liw.fi:/srv/http/ick.liw.fi
pipelines:
+ - get_souce
- build_ikiwiki_site
pipelines:
- - pipeline: build_ikiwiki_site
+ - pipeline: get_source
parameters:
- git_url
- git_ref
- - rsync_target
actions:
- python: |
import subprocess
@@ -82,10 +82,19 @@ This might be expressed as an Ick configuration like this:
subprocess.check_call(*args, stdout=None, stderr=None)
R(['git', 'clone', '-vb', params['git_ref],
params['git_url'], 'src'])
+
+ - pipeline: build_ikiwiki_site
+ parameters:
+ - rsync_target
+ actions:
+ - python: |
+ import subprocess
+ def R(*args):
+ subprocess.check_call(*args, stdout=None, stderr=None)
R(['ql-ikiwiki-publish', 'src', params['rsync_target']])
Note that pipelines are defined in the configuration. Eventually, Ick
-may come with libraries of pre-defined pipelines that can easily be
+will come with libraries of pre-defined pipelines that can easily be
reused, but it will always be possible for users to define their own.