diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml new file mode 100644 index 00000000..64210253 --- /dev/null +++ b/zuul.d/jobs.yaml @@ -0,0 +1,10 @@ +- job: + name: curl-docker + pre-run: zuul.d/playbooks/pre.yaml + run: zuul.d/playbooks/run.yaml + nodeset: ubuntu-focal + +- project: + check: + jobs: + - curl-docker diff --git a/zuul.d/playbooks/pre.yaml b/zuul.d/playbooks/pre.yaml new file mode 100644 index 00000000..b69023da --- /dev/null +++ b/zuul.d/playbooks/pre.yaml @@ -0,0 +1,10 @@ +- hosts: all + roles: + - ensure-docker + tasks: + - name: Install make and curl + become: true + apt: + name: + - make + - curl diff --git a/zuul.d/playbooks/run.yaml b/zuul.d/playbooks/run.yaml new file mode 100644 index 00000000..6c988230 --- /dev/null +++ b/zuul.d/playbooks/run.yaml @@ -0,0 +1,6 @@ +- hosts: all + tasks: + - name: Build image + command: make all lint + args: + chdir: "{{ zuul.project.src_dir }}"