File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
33set -ex
44
5- TAG=$( git describe --dirty -- tags)
5+ TAG=$( git describe --tags)
66BRANCH=$( git rev-parse --abbrev-ref HEAD)
77DIST_VERSION=$TAG
88
99# If the branch comes out as HEAD then we're probably checked out to a tag, so if the thing is *not*
1010# coming out as HEAD then we're on a branch. When we're on a branch, we want to resolve ourselves to
1111# a few SHAs rather than a version.
12- if [ $BRANCH != ' HEAD' ]
12+ # Docker Hub doesn't always check out the tag and sometimes checks out the branch, so we should look
13+ # for an appropriately tagged branch as well (heads/v1.2.3).
14+ if [ $BRANCH != ' HEAD' && $BRANCH != ' heads/v*' ]
1315then
1416 REACT_SHA=$( cd node_modules/matrix-react-sdk; git rev-parse --short=12 HEAD)
1517 JSSDK_SHA=$( cd node_modules/matrix-js-sdk; git rev-parse --short=12 HEAD)
You can’t perform that action at this time.
0 commit comments