1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:34:40 +01:00

Default to alpine image

This commit is contained in:
Daniil Gentili 2023-05-30 19:58:00 +02:00
parent ab8053ba72
commit b2ed9dd81d
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 5 additions and 7 deletions

View File

@ -35,6 +35,7 @@ for f in alpine debian; do
for arch in $arches; do for arch in $arches; do
cp tests/dockerfiles/Dockerfile.$f Dockerfile.$arch cp tests/dockerfiles/Dockerfile.$f Dockerfile.$arch
if [ "$arch" == "riscv64" ]; then if [ "$arch" == "riscv64" ]; then
if [ "$f" == "debian" ]; then continue; fi
sed "s|FROM .*|FROM danog/php:8.2-fpm-$f|" -i Dockerfile.$arch sed "s|FROM .*|FROM danog/php:8.2-fpm-$f|" -i Dockerfile.$arch
fi fi
docker buildx build --platform linux/$arch . \ docker buildx build --platform linux/$arch . \
@ -44,11 +45,11 @@ for f in alpine debian; do
--cache-to type=inline \ --cache-to type=inline \
--load & --load &
manifest="$manifest danog/madelineproto:$arch-next-$f" manifest="danog/madelineproto:$arch-next-$f $manifest"
done done
wait wait
docker manifest create danog/madelineproto:next-$f $manifest docker manifest create --insecure danog/madelineproto:next-$f $manifest
docker manifest push danog/madelineproto:next-$f docker manifest push danog/madelineproto:next-$f
if [ "$CI_COMMIT_TAG" != "" ]; then if [ "$CI_COMMIT_TAG" != "" ]; then
@ -57,7 +58,7 @@ for f in alpine debian; do
fi fi
done done
docker tag danog/madelineproto:next-debian danog/madelineproto:next docker tag danog/madelineproto:next-alpine danog/madelineproto:next
docker push danog/madelineproto:next docker push danog/madelineproto:next
if [ "$CI_COMMIT_TAG" != "" ]; then if [ "$CI_COMMIT_TAG" != "" ]; then

View File

@ -7,10 +7,7 @@ php composer-setup.php
php -r "unlink('composer-setup.php');" php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer mv composer.phar /usr/local/bin/composer
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg -o /usr/share/keyrings/githubcli-archive-keyring.gpg apk add procps git unzip github-cli
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list
apt-get update
apt-get -y install procps git unzip gh
echo "$TAG" | grep -q '\.9999' && exit 0 || true echo "$TAG" | grep -q '\.9999' && exit 0 || true
echo "$TAG" | grep -q '\.9998' && exit 0 || true echo "$TAG" | grep -q '\.9998' && exit 0 || true