2022-12-29 12:56:54 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2023-12-29 13:30:58 -05:00
|
|
|
apk add --no-cache --virtual .php-build-deps \
|
|
|
|
gnupg
|
2023-12-15 05:59:36 -05:00
|
|
|
|
|
|
|
# Install phive
|
2022-12-29 12:56:54 -05:00
|
|
|
curl --retry 5 --retry-delay 5 -sLO https://phar.io/releases/phive.phar
|
|
|
|
curl --retry 5 --retry-delay 5 -sLO https://phar.io/releases/phive.phar.asc
|
2024-05-27 08:25:57 -04:00
|
|
|
gpg --keyserver hkps://keys.openpgp.org --recv-keys "0x9D8A98B29B2D5D79"
|
2022-12-29 12:56:54 -05:00
|
|
|
gpg --verify phive.phar.asc phive.phar
|
|
|
|
chmod +x phive.phar
|
|
|
|
mv phive.phar /usr/local/bin/phive
|
|
|
|
rm phive.phar.asc
|
2023-12-11 12:37:24 -05:00
|
|
|
|
2023-12-15 05:59:36 -05:00
|
|
|
# Install the PHARs listed in phive.xml
|
2023-12-11 12:37:24 -05:00
|
|
|
phive --no-progress install \
|
2024-05-27 08:25:57 -04:00
|
|
|
--trust-gpg-keys 31C7E470E2138192,CF1A108D0E7AE720,8A03EA3B385DBAA1,12CE0F1D262429A5,5E6DDE998AB73B8E,51C67305FFC2E5C0,CBB3D576F2A0946F,689DAD778FF08760E046228BA978220305CD5C32 \
|
2023-12-15 05:59:36 -05:00
|
|
|
--target /usr/bin
|
2023-12-29 13:30:58 -05:00
|
|
|
|
|
|
|
apk del --no-network --purge .php-build-deps
|