#!/bin/bash # build dependencies on Debian: # git python3 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 rm -rf ${WORKSPACE}/* git clone --depth 1 https://github.com/Linaro/docker-utils.git python3 docker-utils/delimage.py linaro debian-source ${TAGNAME}