aboutsummaryrefslogtreecommitdiff
path: root/leg-sdi-remove-tags/build.sh
blob: f370d089d20b13f23f4614eea18acd8e1973e114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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}