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 @@ -25,16 +25,17 @@ golint: govet
2525 golangci-lint run
2626
2727API_DEFINITIONS_SHA =$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
28+ CURRENT_TAG =$(shell [[ "${GITHUB_TAG}" == * "-rc"* ]] && echo "rc" || echo "latest")
2829docker-build :
2930 docker build -t twilio/twilio-go .
3031 docker tag twilio/twilio-go twilio/twilio-go:${GITHUB_TAG}
3132 docker tag twilio/twilio-go twilio/twilio-go:apidefs-${API_DEFINITIONS_SHA}
32- docker tag twilio/twilio-go twilio/twilio-go:latest
33+ docker tag twilio/twilio-go twilio/twilio-go:${CURRENT_TAG}
3334
3435docker-push :
3536 docker push twilio/twilio-go:${GITHUB_TAG}
3637 docker push twilio/twilio-go:apidefs-${API_DEFINITIONS_SHA}
37- docker push twilio/twilio-go:latest
38+ docker push twilio/twilio-go:${CURRENT_TAG}
3839
3940GO_DIRS = $(shell go list ./... | grep -v /rest/ | grep -v /form )
4041cover :
You can’t perform that action at this time.
0 commit comments