Skip to content

Commit

Permalink
more generic TAG split
Browse files Browse the repository at this point in the history
  • Loading branch information
vrince committed May 4, 2022
1 parent 38a3551 commit 60bee1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/redis-timeseries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
push:
branches: [ master ]
tags:
- 'redis_timeseries-*'
- 'redis_timeseries/*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
push:
branches: [ master ]
tags:
- 'redis-*'
- 'redis/*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
11 changes: 6 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ echo "🌿 Module(${MODULE})"
echo "🦑 Arch(${ARCH})"
echo "🏷️ Tag(${TAG})"

if [[ -n ${TAG} ]] ; then
TAG=$(echo ${TAG} | cut -d '/' -f2)
fi

echo "🏷️ Tag(${TAG})"

if [[ ${MODULE} == "redis_timeseries" ]] ; then

if [[ -z ${TAG} || ${TAG} == "master" ]] ; then
TAG="v1.6.9"
echo "Using default tag(${TAG})"
else
TAG=$(echo ${TAG} | cut -d 'v' -f2)
TAG="v${TAG}"
fi

echo "🐏 Cloning ..."
Expand All @@ -38,8 +41,6 @@ if [[ ${MODULE} == "redis" ]] ; then
if [[ -z ${TAG} || ${TAG} == "master" ]] ; then
TAG="7.0"
echo "Using default tag(${TAG})"
else
TAG=$(echo ${TAG} | cut -d 'v' -f2)
fi

echo "🐏 Cloning ..."
Expand Down

0 comments on commit 60bee1a

Please sign in to comment.