1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 22:54:39 +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
cp tests/dockerfiles/Dockerfile.$f Dockerfile.$arch
if [ "$arch" == "riscv64" ]; then
if [ "$f" == "debian" ]; then continue; fi
sed "s|FROM .*|FROM danog/php:8.2-fpm-$f|" -i Dockerfile.$arch
fi
docker buildx build --platform linux/$arch . \
@ -44,11 +45,11 @@ for f in alpine debian; do
--cache-to type=inline \
--load &
manifest="$manifest danog/madelineproto:$arch-next-$f"
manifest="danog/madelineproto:$arch-next-$f $manifest"
done
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
if [ "$CI_COMMIT_TAG" != "" ]; then
@ -57,7 +58,7 @@ for f in alpine debian; do
fi
done
docker tag danog/madelineproto:next-debian danog/madelineproto:next
docker tag danog/madelineproto:next-alpine danog/madelineproto:next
docker push danog/madelineproto:next
if [ "$CI_COMMIT_TAG" != "" ]; then

View File

@ -7,10 +7,7 @@ php composer-setup.php
php -r "unlink('composer-setup.php');"
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
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
apk add procps git unzip github-cli
echo "$TAG" | grep -q '\.9999' && exit 0 || true
echo "$TAG" | grep -q '\.9998' && exit 0 || true