2017-02-13 14:01:54 -05:00
|
|
|
#!/usr/bin/env bash
|
2015-06-02 17:01:00 -04:00
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$BASH_SOURCE")/../.."
|
|
|
|
|
|
|
|
targets_from() {
|
|
|
|
git fetch -q https://github.com/docker/docker.git "$1"
|
2015-11-23 14:00:43 -05:00
|
|
|
git ls-tree -r --name-only "$(git rev-parse FETCH_HEAD)" contrib/builder/deb/ | grep '/Dockerfile$' | sed -r 's!^contrib/builder/deb/|^contrib/builder/deb/amd64/|-debootstrap|/Dockerfile$!!g' | grep -v /
|
2015-06-02 17:01:00 -04:00
|
|
|
}
|
|
|
|
|
2015-09-03 17:49:02 -04:00
|
|
|
release_branch=$(git ls-remote --heads https://github.com/docker/docker.git | awk -F 'refs/heads/' '$2 ~ /^release/ { print $2 }' | sort -V | tail -1)
|
|
|
|
{ targets_from master; targets_from "$release_branch"; } | sort -u
|