File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,14 @@ nopyc:
5151 find . -name \* .pyc -delete
5252
5353API_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")
5455docker-build :
5556 docker build -t twilio/twilio-python .
5657 docker tag twilio/twilio-python twilio/twilio-python:${GITHUB_TAG}
5758 docker tag twilio/twilio-python twilio/twilio-python:apidefs-${API_DEFINITIONS_SHA}
58- docker tag twilio/twilio-python twilio/twilio-python:latest
59+ docker tag twilio/twilio-python twilio/twilio-python:${CURRENT_TAG}
5960
6061docker-push :
6162 docker push twilio/twilio-python:${GITHUB_TAG}
6263 docker push twilio/twilio-python:apidefs-${API_DEFINITIONS_SHA}
63- docker push twilio/twilio-python:latest
64+ docker push twilio/twilio-python:${CURRENT_TAG}
You can’t perform that action at this time.
0 commit comments