diff --git a/packaging/bin/entrypoint.sh b/packaging/bin/entrypoint.sh index c4c8be3d9cb..bd316ba6f01 100755 --- a/packaging/bin/entrypoint.sh +++ b/packaging/bin/entrypoint.sh @@ -7,6 +7,7 @@ log() { signkeypath="$PWD/sign-key.gpg" s3bucket="${S3_BUCKET-dl.k6.io}" +pkgdir="$PWD/Packages" if ! [ -r "$signkeypath" ]; then log "ERROR: Signing key not found at '$signkeypath'" @@ -15,7 +16,8 @@ fi gpg2 --import --batch --passphrase="$PGP_SIGN_KEY_PASSPHRASE" "$signkeypath" export PGPKEYID="$(gpg2 --list-secret-keys --with-colons | grep '^sec' | cut -d: -f5)" -# TODO: Publish the pub key to S3 +mkdir -p "$pkgdir" +gpg2 --export --armor --output "${pkgdir}/key.gpg" "$PGPKEYID" # Setup RPM signing cat > "$HOME/.rpmmacros" <