Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use Docker 'rc' tag for release candidate images #611

Merged
merged 1 commit into from
Jun 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ docs:
doxygen Doxyfile

API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
CURRENT_TAG=$(shell [[ "${GITHUB_TAG}" == *"-rc"* ]] && echo "rc" || echo "latest")
docker-build:
docker build -t twilio/twilio-csharp .
docker tag twilio/twilio-csharp twilio/twilio-csharp:${GITHUB_TAG}
docker tag twilio/twilio-csharp twilio/twilio-csharp:apidefs-${API_DEFINITIONS_SHA}
docker tag twilio/twilio-csharp twilio/twilio-csharp:latest
docker tag twilio/twilio-csharp twilio/twilio-csharp:${CURRENT_TAG}

docker-push:
docker push twilio/twilio-csharp:${GITHUB_TAG}
docker push twilio/twilio-csharp:apidefs-${API_DEFINITIONS_SHA}
docker push twilio/twilio-csharp:latest
docker push twilio/twilio-csharp:${CURRENT_TAG}

cover:
dotnet sonarscanner begin /k:"twilio_twilio-csharp" /o:"twilio" /d:sonar.host.url=https://sonarcloud.io /d:sonar.login="${SONAR_TOKEN}" /d:sonar.language="cs" /d:sonar.exclusions="src/Twilio/Rest/**/*.*,test/Twilio.Test/**/*.*" /d:sonar.cs.opencover.reportsPaths="test/lcov.net451.opencover.xml"
Expand Down