-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Appu Goundan <[email protected]>
- Loading branch information
1 parent
0a0e2d8
commit 13d8bbd
Showing
9 changed files
with
127 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
set -Eeo pipefail | ||
export MAVEN_GPG_KEY=$(cat ../pgp/private.key) | ||
export MAVEN_GPG_PASSPHRASE=pass123 | ||
export ORG_GRADLE_PROJECT_signingKey=$MAVEN_GPG_KEY | ||
export ORG_GRADLE_PROJECT_signingPassword=$MAVEN_GPG_PASSPHRASE | ||
set -x | ||
# gradle | ||
./gradlew clean publishMavenPublicationToExamplesRepository $@ | ||
test -f build/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.jar.sigstore.json | ||
test -f build/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.module.sigstore.json | ||
test -f build/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.pom.sigstore.json | ||
test -f build/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.jar.asc | ||
test -f build/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.module.asc | ||
test -f build/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.pom.asc | ||
# maven | ||
mvn clean deploy --no-transfer-progress $@ | ||
test -f target/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.jar.sigstore.json | ||
test -f target/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.pom.sigstore.json | ||
test -f target/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.jar.asc | ||
test -f target/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.pom.asc | ||
# ensure no double signed (pgp and sigstore) files | ||
test $(find . -name "*.asc.sigstore.java" | wc -c) -eq 0 | ||
test $(find . -name "*.sigstore.java.asc" | wc -c) -eq 0 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## PGP test keys for examples | ||
|
||
``` | ||
$ gpg --quick-gen-key "Test Key (DO NOT USE) <[email protected]>" rsa1024 sign never | ||
passphrase:pass123 | ||
$ gpg --output private.key --armor --export-secret-key [email protected] | ||
$ gpg --output public.key --armor --export [email protected] | ||
``` |
This file contains 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Key-Type: RSA | ||
Key-Length: 4096 | ||
Key-Expiration: 0 | ||
Name: Example Test Key | ||
Email Address: [email protected] | ||
Comment: DO NOT USE | ||
Passphrase: pass123 | ||
Repeat the passphrase: pass123 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-----BEGIN PGP PRIVATE KEY BLOCK----- | ||
|
||
lQIGBG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LV5R4c | ||
Q7cN | ||
=sfrl | ||
-----END PGP PRIVATE KEY BLOCK----- |
This file contains 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
|
||
mI0EZrzuSwEEAKy1fnWAJSZ220GCKyfHfO6ufv7yEHo+cauVkaAUE+f5IWikYJ67 | ||
VxmDMylnru4NJenaTFKCkKKwE9h5QwtDVZOKMijsTqajAqEGyd6lr+yJV6Ilc/Uu | ||
++0uZDIxUMACsFyxIXidOpvq+g66rF4+8L+TQXA0gGrHSUYv20GODgo3ABEBAAG0 | ||
KFRlc3QgS2V5IChETyBOT1QgVVNFKSA8dGVzdEBleGFtcGxlLmNvbT6IzgQTAQoA | ||
OBYhBBv42FTtpf8iZ6LK8WaHWakuSNF5BQJmvO5LAhsDBQsJCAcCBhUKCQgLAgQW | ||
AgMBAh4BAheAAAoJEGaHWakuSNF5YicD/1bbCo0/S5dY1U3q7QNXKAGAIF28hd1t | ||
M7JMZ04qQa56usj6+bzbCVax7CQ9ghnTYgifGOS5462KIBLzNokn/HPPRkGuac42 | ||
uY67SGEVpd93ha7bqZUB3IuWLO2HKNXxN1AE0wTwTMW85sxSsGeUye9/dgQvpzPX | ||
bPLV5R4cQ7cN | ||
=vt0B | ||
-----END PGP PUBLIC KEY BLOCK----- |