File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,12 @@ object CiReleasePlugin extends AutoPlugin {
28
28
29
29
def setupGpg (): Unit = {
30
30
val secret = sys.env(" PGP_SECRET" )
31
+ val passphrase = sys.env(" PGP_PASSPHRASE" )
31
32
(s " echo $secret" #| " base64 --decode" #| " gzip -d" #| " gpg --batch --import" ).!
32
33
// The first time you use `gpg --passphrase` the agent prompts for a password nevertheless
33
34
// The `--pinentry-mode loopback` flag seems to do the trick, but we cannot inject it in sbt-pgp
34
35
// so we're running a dummmy gpg signature here so that we won't be asked for the passphrase later
35
- (" echo dummy" #| s " gpg --pinentry-mode loopback --batch --passphrase $secret --no-default-keyring --keyring /root/.gnupg/pubring.kbx --detach-sign --armor --use-agent " ).!
36
+ (" echo dummy" #| s " gpg --pinentry-mode loopback --batch --passphrase $passphrase --no-default-keyring --keyring /root/.gnupg/pubring.kbx --detach-sign --armor --use-agent " ).!
36
37
}
37
38
38
39
override def buildSettings : Seq [Def .Setting [_]] = List (
You can’t perform that action at this time.
0 commit comments