We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75bd37b commit ff61000Copy full SHA for ff61000
release-rpm.sh
@@ -9,12 +9,12 @@ set -euo pipefail
9
TEMP_KEY_FILE=$(mktemp)
10
echo "$GPG_PRIVATE_KEY" > "$TEMP_KEY_FILE"
11
12
-# Import key into GPG keyring with passphrase
13
-echo "$GPG_PASSPHRASE" | gpg --batch --yes --passphrase-fd 0 --import "$TEMP_KEY_FILE"
+# Import key into GPG keyring
+gpg --batch --import "$TEMP_KEY_FILE"
14
15
-# Set environment variable for GoReleaser to use the key file path
+# Set environment variables for GoReleaser
16
export GPG_PRIVATE_KEY="$TEMP_KEY_FILE"
17
-export GPG_PASSPHRASE
+export NFPM_LINUX_PACKAGES_RPM_PASSPHRASE="$GPG_PASSPHRASE"
18
19
goreleaser release --clean --config goreleaser.rpm.yaml --snapshot
20
0 commit comments