aboutsummaryrefslogtreecommitdiff
path: root/lava-dispatcher-docker.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2018-04-26 14:18:59 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2018-04-26 14:18:59 +0300
commitda76b7d240351c9483a6c54e318f484ca573dea1 (patch)
tree2a3e7bfd0b5bfbcb4f0acd5d30dbb543e704b5e5 /lava-dispatcher-docker.yaml
parent113b78a73d5919d5723e33a1a49e389c3a8bfb96 (diff)
lava-dispatcher-docker: fix the filename
the filename should match the job name. Change-Id: I28666176f0546d184d4e564bbecc910b1bb9ae94 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'lava-dispatcher-docker.yaml')
-rw-r--r--lava-dispatcher-docker.yaml72
1 files changed, 72 insertions, 0 deletions
diff --git a/lava-dispatcher-docker.yaml b/lava-dispatcher-docker.yaml
new file mode 100644
index 0000000000..5f4121a6eb
--- /dev/null
+++ b/lava-dispatcher-docker.yaml
@@ -0,0 +1,72 @@
+- job:
+ name: lava-dispatcher-docker
+ project-type: freestyle
+ defaults: global
+ properties:
+ - authorization:
+ anonymous:
+ - job-discover
+ linaro:
+ - job-read
+ - job-extended-read
+ - job-build
+ - job-cancel
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 30
+ disabled: false
+ node: build-amd64
+ display-name: 'LAVA Dispatcher Production Docker images'
+ scm:
+ - git:
+ url: https://git.linaro.org/ci/dockerfiles.git
+ refspec: +refs/heads/master:refs/remotes/origin/master
+ name: origin
+ branches:
+ - refs/heads/master
+ skip-tag: true
+ shallow-clone: true
+ triggers:
+ - pollurl:
+ cron: '@daily'
+ urls:
+ - url: 'http://images.validation.linaro.org/production-repo/services-trace.txt'
+ check-content:
+ - simple: true
+ wrappers:
+ - timestamps
+ - copy-to-slave:
+ includes:
+ - config.json
+ relative-to: 'somewhereElse'
+ - credentials-binding:
+ - text:
+ credential-id: DOCKER_AUTH
+ variable: DOCKER_AUTH
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ set -ex
+
+ trap cleanup_exit INT TERM EXIT
+
+ cleanup_exit()
+ {
+ rm -rf ${HOME}/.docker
+ }
+
+ mkdir -p ${HOME}/.docker
+ sed -e "s|\${DOCKER_AUTH}|${DOCKER_AUTH}|" < ${WORKSPACE}/config.json > ${HOME}/.docker/config.json
+ chmod 0600 ${HOME}/.docker/config.json
+
+ # Build
+ pushd lava/dispatcher/production/stretch-amd64
+ rm -f .docker-tag
+ ./build.sh
+ # push to linaro/lava-dispatcher-production-stretch-amd64:2018.2-1
+ docker push $(cat .docker-tag)
+ popd
+ publishers:
+ - email:
+ recipients: 'senthil.kumaran@linaro.org riku.voipio@linaro.org fathi.boudra@linaro.org'