Skip to content

Commit ad61429

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ authors:
1717
git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
1818

1919
API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
20+
CURRENT_TAG=$(shell [[ "${GITHUB_TAG}" == *"-rc"* ]] && echo "rc" || echo "latest")
2021
docker-build:
2122
docker build -t twilio/twilio-ruby .
2223
docker tag twilio/twilio-ruby twilio/twilio-ruby:${GITHUB_TAG}
2324
docker tag twilio/twilio-ruby twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
24-
docker tag twilio/twilio-ruby twilio/twilio-ruby:latest
25+
docker tag twilio/twilio-ruby twilio/twilio-ruby:${CURRENT_TAG}
2526

2627
docker-push:
2728
docker push twilio/twilio-ruby:${GITHUB_TAG}
2829
docker push twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
29-
docker push twilio/twilio-ruby:latest
30+
docker push twilio/twilio-ruby:${CURRENT_TAG}

0 commit comments

Comments
 (0)