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:
51
51
find . -name \* .pyc -delete
52
52
53
53
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
55
docker-build :
55
56
docker build -t twilio/twilio-python .
56
57
docker tag twilio/twilio-python twilio/twilio-python:${GITHUB_TAG}
57
58
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}
59
60
60
61
docker-push :
61
62
docker push twilio/twilio-python:${GITHUB_TAG}
62
63
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