2022-06-06 23:53:43 +02:00
|
|
|
matrix:
|
|
|
|
php:
|
|
|
|
- "8.1"
|
2023-05-28 19:11:30 +02:00
|
|
|
platform:
|
|
|
|
- linux/arm64
|
2022-06-06 23:53:43 +02:00
|
|
|
|
2023-05-28 22:00:07 +02:00
|
|
|
platform: ${platform}
|
|
|
|
|
2022-06-04 17:50:05 +02:00
|
|
|
clone:
|
|
|
|
git:
|
2022-06-04 17:52:21 +02:00
|
|
|
when:
|
2022-06-23 14:31:41 +02:00
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
- push
|
2023-01-15 11:33:42 +01:00
|
|
|
image: woodpeckerci/plugin-git:v1.5.0
|
2022-06-04 17:50:05 +02:00
|
|
|
settings:
|
|
|
|
depth: 1
|
|
|
|
lfs: false
|
|
|
|
recursive: false
|
2022-06-04 18:27:08 +02:00
|
|
|
tags: true
|
2022-06-04 17:50:05 +02:00
|
|
|
|
2022-06-04 17:40:03 +02:00
|
|
|
pipeline:
|
|
|
|
build:
|
2022-06-06 22:35:03 +02:00
|
|
|
group: build
|
2023-05-29 22:09:28 +02:00
|
|
|
image: danog/madelineproto:next-debian-${CI_COMMIT_SHA}
|
2022-06-04 17:40:03 +02:00
|
|
|
when:
|
2022-06-23 14:40:08 +02:00
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
- push
|
2022-06-04 17:40:03 +02:00
|
|
|
secrets:
|
|
|
|
- GITHUB_TOKEN
|
|
|
|
- API_ID
|
|
|
|
- API_HASH
|
|
|
|
- BOT_TOKEN
|
|
|
|
- DEST
|
2023-05-29 14:53:21 +02:00
|
|
|
- DEPLOY_KEY
|
2022-06-04 17:40:03 +02:00
|
|
|
environment:
|
2022-06-06 23:53:43 +02:00
|
|
|
- PHP_VERSION=${php}
|
2022-06-04 17:40:03 +02:00
|
|
|
- TAG=${CI_COMMIT_TAG}
|
|
|
|
commands:
|
2023-05-29 21:53:25 +02:00
|
|
|
- /bin/bash tests/makephar.sh
|
2022-06-04 17:40:03 +02:00
|
|
|
|
2022-06-23 14:31:41 +02:00
|
|
|
services:
|
|
|
|
mariadb:
|
|
|
|
image: mariadb
|
|
|
|
environment:
|
|
|
|
- MARIADB_DATABASE=MadelineProto
|
|
|
|
- MARIADB_USER=MadelineProto
|
|
|
|
- MARIADB_PASSWORD=test
|
2022-06-23 15:15:29 +02:00
|
|
|
- MARIADB_RANDOM_ROOT_PASSWORD=yes
|
2022-06-23 14:31:41 +02:00
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=MadelineProto
|
|
|
|
- POSTGRES_USER=MadelineProto
|
|
|
|
- POSTGRES_PASSWORD=test
|
|
|
|
|
|
|
|
redis:
|
2022-11-04 14:16:30 +01:00
|
|
|
image: redis
|
2023-05-28 19:41:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
depends_on:
|
2023-05-29 18:54:23 +02:00
|
|
|
- build-docker
|