blob: 9580d2aa3a373e5671d0fc2cee9dc61f4b2c672b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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 dockerfiles/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'
|