-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add gpg-sign step to drone #4188
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dce2438
Add gpg-sign step to drone
sapk 4c0a3c5
add compressed releases to gpg-sign targets
sapk ba04d35
Merge branch 'master' into drone-gpg-sig
lunny 0c72983
Use exclude to simplify file list
sapk f43a711
Merge branch 'master' into drone-gpg-sig
techknowlogick bc76a71
Merge branch 'master' into drone-gpg-sig
lunny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,6 +255,28 @@ pipeline: | |
when: | ||
event: [ push, tag ] | ||
|
||
gpg-sign: | ||
image: plugins/gpgsign:1 | ||
pull: true | ||
secrets: [ gpgsign_key, gpgsign_passphrase ] | ||
detach_sign: true | ||
files: | ||
- dist/release/*-amd64 | ||
- dist/release/*-386 | ||
- dist/release/*-arm64 | ||
- dist/release/*-arm-5 | ||
- dist/release/*-arm-6 | ||
- dist/release/*-arm-7 | ||
- dist/release/*-mips | ||
- dist/release/*-mips64 | ||
- dist/release/*-mipsle | ||
- dist/release/*-mips64le | ||
- dist/release/*-amd64.exe | ||
- dist/release/*-386.exe | ||
- dist/release/*.xz | ||
when: | ||
event: [ push, tag ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we really need the push event here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
release: | ||
image: plugins/s3:1 | ||
pull: true | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
should we sign the compressed files too?
Uh oh!
There was an error while loading. Please reload this page.
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.
Since they should be extract to be usefull ? It is possible but it is un-needed I think but if someone want it we can.
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 think it might be a good idea because if perhaps someone replaces the compressed file with perhaps a zip bomb. Signing the compressed file means they can check it before they extract.
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
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.
Only the xz files are getting uploaded, right? Than only sign *.xz
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.
That's only a cosmetical improvement and can be added anytime. I don't see a need to delay this milestone any further.
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 merge the gpgsign plugin, but to tag a release I have to be home
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.
As long as we can merge and release RC today I'm fine
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.
Merged gpgsign PR and triggered a release => https://beta.drone.io/drone-plugins/drone-gpgsign/11
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.
@lunny @tboerger done.