You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upstream (moby/moby) repository is unifying all API swagger files
to be in the release branch. With that change, it is no longer needed
to fetch each version of the API separately, and instead all versions
can be fetched at once.
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copy file name to clipboardExpand all lines: _scripts/fetch-upstream-resources.sh
+14-24
Original file line number
Diff line number
Diff line change
@@ -62,37 +62,27 @@ if [ distribution_svn_branch = "branches/master" ]; then
62
62
fi
63
63
64
64
# Directories to get via SVN. We use this because you can't use git to clone just a portion of a repository
65
-
svn co "https://github.com/docker/docker-ce/${engine_svn_branch}/components/cli/docs/extend" ./engine/extend || (echo "Failed engine/extend download"&&exit 1)
66
-
svn co "https://github.com/docker/docker-ce/${engine_svn_branch}/components/engine/docs/api" ./engine/api || (echo "Failed engine/api download"&&exit 1)# This will only get you the old API MD files 1.18 through 1.24
67
-
svn co "https://github.com/docker/distribution/${distribution_svn_branch}/docs/spec" ./registry/spec || (echo "Failed registry/spec download"&&exit 1)
68
-
svn co "https://github.com/mirantis/compliance/trunk/docs/compliance"./compliance|| (echo "Failed docker/compliance download"&&exit 1)
65
+
svn co "https://github.com/docker/cli/${engine_svn_branch}/docs/extend" ./engine/extend || (echo "Failed engine/extend download"&&exit 1)
66
+
svn co "https://github.com/docker/docker/${engine_svn_branch}/docs/api"./engine/api || (echo "Failed engine/api download"&&exit 1)
67
+
svn co "https://github.com/docker/distribution/${distribution_svn_branch}/docs/spec" ./registry/spec || (echo "Failed registry/spec download"&&exit 1)
68
+
svn co "https://github.com/mirantis/compliance/trunk/docs/compliance"./compliance|| (echo "Failed docker/compliance download"&&exit 1)
69
69
70
70
# Cleanup svn directories
71
71
find . -name .svn -exec rm -rf '{}'\;
72
72
73
73
# Get the Engine APIs that are in Swagger
74
-
# Be careful with the locations on Github for these
75
-
# When you change this you need to make sure to copy the previous
76
-
# directory into a new one in the docs git and change the index.html
0 commit comments