Skip to content

Commit 6ca4473

Browse files
author
childish-sambino
authored
chore: use Docker 'rc' tag for release candidate images (#608)
1 parent 1b013eb commit 6ca4473

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@ 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")
5455
docker-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

6061
docker-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}

0 commit comments

Comments
 (0)