mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
docs: fmt
This commit is contained in:
parent
76cfa61407
commit
84e0a2b175
6
.github/ISSUE_TEMPLATES/bug.md
vendored
6
.github/ISSUE_TEMPLATES/bug.md
vendored
@ -19,9 +19,9 @@ Please paste the output of:
|
||||
|
||||
### Steps to Reproduce
|
||||
|
||||
1. [First Step]
|
||||
2. [Second Step]
|
||||
3. [and so on...]
|
||||
1. [First Step]
|
||||
2. [Second Step]
|
||||
3. [and so on...]
|
||||
|
||||
**Expected behavior:** [What you expected to happen]
|
||||
|
||||
|
86
pipeline/sign/testdata/README.md
vendored
86
pipeline/sign/testdata/README.md
vendored
@ -8,73 +8,73 @@ key works.
|
||||
This uses the `--homedir .` option to create the test keys so that we do not touch
|
||||
the local keyring file.
|
||||
|
||||
1. Create signing keys
|
||||
1. Create signing keys
|
||||
|
||||
cd $GOPATH/src/github.com/goreleaser/goreleaser/pipeline/sign/testdata/gnupg
|
||||
gpg --homedir . --quick-generate-key --batch --passphrase '' nopass default default 10y
|
||||
cd $GOPATH/src/github.com/goreleaser/goreleaser/pipeline/sign/testdata/gnupg
|
||||
gpg --homedir . --quick-generate-key --batch --passphrase '' nopass default default 10y
|
||||
|
||||
1. Check that the key exists
|
||||
1. Check that the key exists
|
||||
|
||||
## $ gpg --homedir . --list-keys
|
||||
## $ gpg --homedir . --list-keys
|
||||
|
||||
pub rsa2048 2017-12-13 [SC][expires: 2027-12-11]
|
||||
FB6BEDFCECE1761EDD68BF32EF2D274B0EDAAE12
|
||||
uid [ultimate] nopass
|
||||
sub rsa2048 2017-12-13 [E]
|
||||
pub rsa2048 2017-12-13 [SC][expires: 2027-12-11]
|
||||
FB6BEDFCECE1761EDD68BF32EF2D274B0EDAAE12
|
||||
uid [ultimate] nopass
|
||||
sub rsa2048 2017-12-13 [E]
|
||||
|
||||
1) Check that signing works
|
||||
1) Check that signing works
|
||||
|
||||
# create a test file
|
||||
# create a test file
|
||||
|
||||
echo "bar" > foo
|
||||
echo "bar" > foo
|
||||
|
||||
# sign and verfiy
|
||||
# sign and verfiy
|
||||
|
||||
gpg --homedir . --detach-sign foo
|
||||
gpg --homedir . --verify foo.sig foo
|
||||
gpg --homedir . --detach-sign foo
|
||||
gpg --homedir . --verify foo.sig foo
|
||||
|
||||
gpg: Signature made Wed Dec 13 22:02:49 2017 CET
|
||||
gpg: using RSA key FB6BEDFCECE1761EDD68BF32EF2D274B0EDAAE12
|
||||
gpg: Good signature from "nopass" [ultimate]
|
||||
gpg: Signature made Wed Dec 13 22:02:49 2017 CET
|
||||
gpg: using RSA key FB6BEDFCECE1761EDD68BF32EF2D274B0EDAAE12
|
||||
gpg: Good signature from "nopass" [ultimate]
|
||||
|
||||
# cleanup
|
||||
# cleanup
|
||||
|
||||
rm foo foo.sig
|
||||
rm foo foo.sig
|
||||
|
||||
1) Make sure you have keyrings for both gpg1 and gpg2
|
||||
1) Make sure you have keyrings for both gpg1 and gpg2
|
||||
|
||||
travis-ci.org runs on an old Ubuntu installation which
|
||||
has gpg 1.4 installed. We need to provide keyrings that
|
||||
have the same keys and users for both formats.
|
||||
travis-ci.org runs on an old Ubuntu installation which
|
||||
has gpg 1.4 installed. We need to provide keyrings that
|
||||
have the same keys and users for both formats.
|
||||
|
||||
This demonstrates the conversion from gpg2 to gpg1
|
||||
format but should work the same the other way around.
|
||||
This demonstrates the conversion from gpg2 to gpg1
|
||||
format but should work the same the other way around.
|
||||
|
||||
# get gpg version
|
||||
# get gpg version
|
||||
|
||||
gpg --version
|
||||
gpg (GnuPG) 2.2.3
|
||||
...
|
||||
gpg --version
|
||||
gpg (GnuPG) 2.2.3
|
||||
...
|
||||
|
||||
# install gpg1
|
||||
# install gpg1
|
||||
|
||||
brew install gpg1
|
||||
brew install gpg1
|
||||
|
||||
# brew install gpg2 # if you have gpg1 installed
|
||||
# brew install gpg2 # if you have gpg1 installed
|
||||
|
||||
# migrate the keys from gpg2 to gpg1
|
||||
# migrate the keys from gpg2 to gpg1
|
||||
|
||||
gpg --homedir . --export nopass | gpg1 --homedir . --import
|
||||
gpg --homedir . --export-secret-key nopass | gpg1 --homedir . --import
|
||||
gpg --homedir . --export nopass | gpg1 --homedir . --import
|
||||
gpg --homedir . --export-secret-key nopass | gpg1 --homedir . --import
|
||||
|
||||
# check keys are the same
|
||||
# check keys are the same
|
||||
|
||||
gpg --homedir . --list-keys --keyid-format LONG
|
||||
gpg1 --homedir . --list-keys --keyid-format LONG
|
||||
gpg --homedir . --list-keys --keyid-format LONG
|
||||
gpg1 --homedir . --list-keys --keyid-format LONG
|
||||
|
||||
gpg --homedir . --list-secret-keys --keyid-format LONG
|
||||
gpg1 --homedir . --list-secret-keys --keyid-format LONG
|
||||
gpg --homedir . --list-secret-keys --keyid-format LONG
|
||||
gpg1 --homedir . --list-secret-keys --keyid-format LONG
|
||||
|
||||
```
|
||||
```
|
||||
|
||||
```
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user