2016-10-06 21:08:29 +03:00
|
|
|
#!/bin/bash
|
2016-10-22 00:21:25 +03:00
|
|
|
set -e
|
2016-10-06 21:08:29 +03:00
|
|
|
|
|
|
|
cd "$(dirname $0)"
|
|
|
|
|
2016-10-06 21:33:16 +03:00
|
|
|
GIT_COMMIT=${1:-$(git rev-parse HEAD)}
|
|
|
|
GITHUB_BASE_URL="https://github.com/microsoft/vsts-agent-docker/blob/$GIT_COMMIT"
|
2016-10-06 21:08:29 +03:00
|
|
|
LATEST_TAG=$(cat latest.tag)
|
|
|
|
|
2016-11-06 07:47:19 +03:00
|
|
|
while read dir; do
|
|
|
|
DOCKER_TAG=${dir//\//-}
|
|
|
|
DOCKERFILE_URL=$dir/Dockerfile
|
2016-10-06 21:08:29 +03:00
|
|
|
MD="[\`$DOCKER_TAG\`]($GITHUB_BASE_URL/$DOCKERFILE_URL)"
|
|
|
|
if [ "$DOCKER_TAG" == "$LATEST_TAG" ]; then
|
|
|
|
MD="$MD, [\`latest\`]($GITHUB_BASE_URL/$DOCKERFILE_URL)"
|
|
|
|
fi
|
|
|
|
echo "- $MD [($DOCKERFILE_URL)]($GITHUB_BASE_URL/$DOCKERFILE_URL)"
|
2017-09-19 07:13:17 +03:00
|
|
|
done < <(./dirs.sh $1)
|