diff --git a/CHANGELOG.md b/CHANGELOG.md index f68a9dc9..f16494d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,12 @@ and this project adheres to ## [v0.105.1] - 2021-02-24 --> +### Fixed + +- Incorrect version tag in the Docker release ([#2663]). + +[#2663]: https://github.com/AdguardTeam/AdGuardHome/issues/2663 + ## [v0.105.0] - 2021-02-10 ### Added diff --git a/scripts/make/build-docker.sh b/scripts/make/build-docker.sh index d8eb2737..29b86ba6 100644 --- a/scripts/make/build-docker.sh +++ b/scripts/make/build-docker.sh @@ -17,7 +17,16 @@ set -e -f -u readonly channel="$CHANNEL" readonly commit="$COMMIT" readonly dist_dir="$DIST_DIR" -readonly version="$VERSION" + +if [ "${VERSION:-}" = 'v0.0.0' -o "${VERSION:-}" = '' ] +then + readonly version="$(sh ./scripts/make/version.sh)" +else + readonly version="$VERSION" +fi + +echo $version +exit 0 # Allow users to use sudo. readonly sudo_cmd="${SUDO:-}"