8000 fix: correct the docker tag syntax for RCs · Skotha/twilio-python@951fc87 · GitHub
[go: up one dir, main page]

Skip to content

Commit 951fc87

Browse files
author
Sam Harrison
committed
fix: correct the docker tag syntax for RCs
1 parent e4d6070 commit 951fc87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ nopyc:
5151
find . -name \*.pyc -delete
5252

5353
API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
54-
CURRENT_TAG=$(shell [[ "${GITHUB_TAG}" == *"-rc"* ]] && echo "rc" || echo "latest")
54+
CURRENT_TAG=$(shell expr "${GITHUB_TAG}" : ".*-rc.*" >/dev/null && echo "rc" || echo "latest")
5555
docker-build:
5656
docker build -t twilio/twilio-python .
5757
docker tag twilio/twilio-python twilio/twilio-python:${GITHUB_TAG}

0 commit comments

Comments
 (0)
0