-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
deploy.sh: upload release source tarball #969
Conversation
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.
Thanks @Mic92 :)
LGTM
@@ -27,6 +27,7 @@ sudo chmod +x /usr/bin/ghr | |||
|
|||
# github release and tag | |||
echo "Github release..." | |||
tar cfz dist/traefik-${VERSION}.src.tar.gz --exclude .git --exclude dist . |
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.
options --exclude-vcs --exclude-vcs-ignores
are better choices :)
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.
without --exclude-vcs-ignores
if we want to keep /vendor
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.
done!
If i'm not wrong, Github is already doing a |
@guilhem but this is not the same, it does not include vendor/ with source code of used packages. Having this option allows us to install any release at any point without having to worry that repositories gets vanished at some point. |
@Mic92 Ok I understand, it's true I used to commit |
Having a release tarball including all vendor source makes life of maintainers a lot easier to create downstream packages. It also ensures that as long as the go release is available the software can be build reproducible.
LGTM 👼 |
Having a release tarball including all vendor source makes life of maintainers a lot easier to create downstream packages.
It also ensures that as long as the go release is available the software can be build reproducible.