mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
fix version
Signed-off-by: Abhradeep Chakraborty <abhradeep@dragonflydb.io>
This commit is contained in:
parent
1185dd9e56
commit
f7bb5a87a3
1 changed files with 6 additions and 0 deletions
6
.github/workflows/docker-dev-release.yml
vendored
6
.github/workflows/docker-dev-release.yml
vendored
|
@ -113,6 +113,12 @@ jobs:
|
||||||
# Extract version from the image
|
# Extract version from the image
|
||||||
echo "Extracting version from image..."
|
echo "Extracting version from image..."
|
||||||
VERSION=$(docker run --rm ${image_tag} dragonfly --version | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | head -n1 | cut -d' ' -f2 | cut -d'-' -f1)
|
VERSION=$(docker run --rm ${image_tag} dragonfly --version | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | head -n1 | cut -d' ' -f2 | cut -d'-' -f1)
|
||||||
|
# Check if version starts with a release version (v*.*.*)
|
||||||
|
if [[ ! $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+ ]]; then
|
||||||
|
# Get the latest release version to use as prefix
|
||||||
|
LATEST_RELEASE=$(curl -s https://api.github.com/repos/dragonflydb/dragonfly/releases/latest | jq -r .tag_name)
|
||||||
|
VERSION="${LATEST_RELEASE}+${VERSION}"
|
||||||
|
fi
|
||||||
echo "Dragonfly version: $VERSION"
|
echo "Dragonfly version: $VERSION"
|
||||||
|
|
||||||
echo "Extracting binary from ${image_tag} for ${{ matrix.os.arch }}"
|
echo "Extracting binary from ${image_tag} for ${{ matrix.os.arch }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue