Merge pull request #850 from ajeddeloh/build-1939

backport "signing/sign.sh: fix armoring" to alpha
This commit is contained in:
Andrew Jeddeloh 2018-10-29 14:56:15 -07:00 committed by GitHub
commit 55d61e8971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,10 @@ fero-client \
--secret-key coreos-app-signing-key \
${torcx_signature_arg}
gpg2 --enarmor \
--output "${DATA_DIR}/torcx_manifest.json.asc" \
"${DATA_DIR}/torcx_manifest.json.sig-fero"
--output - \
"${DATA_DIR}/torcx_manifest.json.sig-fero" \
| sed 's/ARMORED FILE/SIGNATURE/' \
> "${DATA_DIR}/torcx_manifest.json.asc"
echo "=== Torcx manifest signed successfully. ==="
rm -f "${DATA_DIR}/torcx_manifest.json.sig-fero"