[ubuntu] Remove apt-key from build scripts (#9082)

This commit is contained in:
Shamil Mubarakshin
2023-12-29 18:11:55 +01:00
committed by GitHub
parent 1658c2e905
commit 266f9413d3
5 changed files with 52 additions and 25 deletions
+12 -2
View File
@@ -4,10 +4,20 @@
## Desc: Install HHVM
################################################################################
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xB4112585D386EB94
add-apt-repository https://dl.hhvm.com/ubuntu
REPO_URL="https://dl.hhvm.com/ubuntu"
GPG_KEY="/usr/share/keyrings/hhvm.gpg"
REPO_PATH="/etc/apt/sources.list.d/hhvm.list"
# add HHVM repository to apt
curl -fsSL https://dl.hhvm.com/conf/hhvm.gpg.key | gpg --dearmor -o $GPG_KEY
echo "deb [signed-by=$GPG_KEY] $REPO_URL $(lsb_release -cs) main" > $REPO_PATH
# install HHVM
apt-get update
apt-get -qq install -y hhvm
# remove HHVM's apt repository
rm $REPO_PATH
rm $GPG_KEY
invoke_tests "Tools" "HHVM"