mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e38a9ecef6
we changed the naming scheme of the release branch Signed-off-by: Jessica Frazelle <acidburn@docker.com>
12 lines
512 B
Bash
Executable file
12 lines
512 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
cd "$(dirname "$BASH_SOURCE")/../.."
|
|
|
|
targets_from() {
|
|
git fetch -q https://github.com/docker/docker.git "$1"
|
|
git ls-tree -r --name-only origin/master contrib/builder/deb | grep '/Dockerfile$' | sed -r 's!^contrib/builder/deb/|-debootstrap|/Dockerfile$!!g'
|
|
}
|
|
|
|
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
|