1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:59:01 +01:00

Update build system

This commit is contained in:
Daniil Gentili 2023-05-29 15:10:42 +02:00
parent 0fa1f1ac48
commit fd1b42b941
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
5 changed files with 28 additions and 4 deletions

View File

@ -36,3 +36,18 @@ pipeline:
- tag
- push
alias:
image: docker:cli
secrets: [docker_username, docker_password]
environment:
- docker_username=${docker_username}
- docker_password=${docker_password}
commands:
- docker login -p "$docker_password" -u "$docker_username"
- docker pull danog/madelineproto:next-debian
- docker tag danog/madelineproto:next-debian danog/madelineproto:next
- docker push danog/madelineproto:next
when:
event:
- tag
- push

View File

@ -22,7 +22,7 @@ clone:
pipeline:
build:
group: build
image: 192.168.69.1:5000/php-ci:latest
image: danog/madelineproto:next
when:
event:
- tag

View File

@ -2,8 +2,11 @@ pipeline:
alias:
image: docker:cli
secrets: [docker_username, docker_password]
environment:
- docker_username=${docker_username}
- docker_password=${docker_password}
commands:
- echo "$docker_password" | docker login -u "$docker_username" --password-stdin
- docker login -p "$docker_password" -u "$docker_username"
- docker pull danog/madelineproto:next-alpine
- docker pull danog/madelineproto:next-debian
- docker pull danog/madelineproto:next
@ -16,7 +19,6 @@ pipeline:
when:
event:
- tag
- push
depends_on:
- "build-docker"

View File

@ -139,7 +139,7 @@ final class MTProto implements TLCallback, LoggerGetter
*
* @var string
*/
const RELEASE = '8.0.0-beta84';
const RELEASE = '8.0.0-beta86';
/**
* We're not logged in.
*

View File

@ -32,6 +32,13 @@ if [ "$TAG" == "" ]; then
git checkout "$TAG"
fi
if [ "$TAG" != "7777" ]; then
grep -q "const RELEASE = '$TAG'" src/MTProto.php || {
echo "The RELEASE constant is not up to date!"
exit 1
}
fi
export TEST_SECRET_CHAT=test
export TEST_USERNAME=danogentili
export TEST_DESTINATION_GROUPS='["@danogentili"]'