-
Notifications
You must be signed in to change notification settings - Fork 688
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
[ci] Publish serving tar and zip #2014
Conversation
if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'snapshot' }} | ||
run: | | ||
./gradlew :serving:distZip -Psnapshot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need publish snapshot .zip and .tar file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
if: ${{ github.event.inputs.mode == 'staging' }} | ||
run: | | ||
./gradlew :serving:distZip -Pstaging | ||
./gradlew :serving:createDeb -Pstaging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./gradlew :serving:createDeb -Pstaging | |
./gradlew :serving:dZ :serving:createDeb -Pstaging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
dc10d33
to
3c75c17
Compare
DJL_VERSION=$(cat gradle.properties | awk -F '=' '/djl_version/ {print $2}') | ||
aws s3 cp serving/build/distributions/*.deb s3://djl-ai/publish/djl-serving/ | ||
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/djl-serving/djl-serving_${DJL_VERSION}*" | ||
aws s3 cp serving/build/distributions/*.tar s3://djl-ai/publish/djl-serving/ | ||
aws s3 cp serving/build/distributions/*.zip s3://djl-ai/publish/djl-serving/ | ||
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/djl-serving/serving-${DJL_VERSION}*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only need invalidate once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The paths are different. One is "djl-serving_", one is "serving-".
DJL_VERSION=$(cat gradle.properties | awk -F '=' '/djl_version/ {print $2}') | ||
aws s3 cp serving/build/distributions/*.deb s3://djl-ai/publish/djl-serving/ | ||
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/djl-serving/djl-serving_${DJL_VERSION}*" | ||
- name: Publish release deb | ||
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/djl-serving/djl-serving_${DJL_VERSION}~SNAPSHOT*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need add ~SNAPSHOT here, none SNAPSHOT version doesn't exist yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see non SNAPSHOT version like: djl-serving_0.19.0-1_all.deb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
once we published 0.19.0, the snapshot build will be 0.20.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, changed.
3c75c17
to
7408533
Compare
7408533
to
b72107d
Compare
Codecov ReportBase: 72.08% // Head: 69.93% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2014 +/- ##
============================================
- Coverage 72.08% 69.93% -2.16%
- Complexity 5126 5945 +819
============================================
Files 473 587 +114
Lines 21970 26283 +4313
Branches 2351 2860 +509
============================================
+ Hits 15838 18380 +2542
- Misses 4925 6522 +1597
- Partials 1207 1381 +174
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Description
Brief description of what this PR is about
Publish serving tar and zip