File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ authors:
17
17
git log --raw | grep " ^Author: " | cut -d ' ' -f2- | cut -d ' <' -f1 | sed ' s/^/- /' | sort | uniq >> AUTHORS.md
18
18
19
19
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")
20
21
docker-build :
21
22
docker build -t twilio/twilio-ruby .
22
23
docker tag twilio/twilio-ruby twilio/twilio-ruby:${GITHUB_TAG}
23
24
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}
25
26
26
27
docker-push :
27
28
docker push twilio/twilio-ruby:${GITHUB_TAG}
28
29
docker push twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
29
- docker push twilio/twilio-ruby:latest
30
+ docker push twilio/twilio-ruby:${CURRENT_TAG}
You can’t perform that action at this time.
0 commit comments