diff options
author | Senthil Kumaran S <senthil.kumaran@linaro.org> | 2018-04-27 15:54:58 +0530 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2018-05-30 12:15:59 +0300 |
commit | 8006020883cfd8789eb31cc59bdc3e7d82866d5c (patch) | |
tree | e43b1d1db01c79d49af5136546d526c476fe8e8a /lava-dispatcher-docker.yaml | |
parent | e636f838ccdb8f448dde72f5380d7a9f3b7b2e93 (diff) |
lava-dispatcher-daily-docker: Build docker images from staging-repo
The staging-repo gets updated on a daily basis with lava-dispatcher packages
built from git master branch of the source code.
lava-dispatcher-docker: Fix for the new layout in dockerfiles repo
Change-Id: Idfbf383fd18a8bebe9d9bd2e20aadd8007c75deb
Diffstat (limited to 'lava-dispatcher-docker.yaml')
-rw-r--r-- | lava-dispatcher-docker.yaml | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/lava-dispatcher-docker.yaml b/lava-dispatcher-docker.yaml index 5f4121a6eb..d43469343d 100644 --- a/lava-dispatcher-docker.yaml +++ b/lava-dispatcher-docker.yaml @@ -14,6 +14,10 @@ - build-discarder: days-to-keep: 30 num-to-keep: 30 + parameters: + - string: + name: REPOSITORY + default: 'production' disabled: false node: build-amd64 display-name: 'LAVA Dispatcher Production Docker images' @@ -44,29 +48,8 @@ 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 + - shell: + !include-raw: lava-dispatcher-docker/builders.sh publishers: - email: recipients: 'senthil.kumaran@linaro.org riku.voipio@linaro.org fathi.boudra@linaro.org' |