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

Refactor tests

This commit is contained in:
Daniil Gentili 2023-05-28 20:24:03 +02:00
parent b4e571478e
commit 8142a675ff
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 13 additions and 20 deletions

View File

@ -43,4 +43,6 @@ pipeline:
when:
event:
- tag
- push
- push
matrix:
variant: "alpine"

View File

@ -1,7 +1,4 @@
matrix:
variant:
- "debian"
- "alpine"
platform:
- linux/arm64
@ -18,27 +15,21 @@ clone:
tags: true
pipeline:
build:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: danog/madelineproto
dockerfile: "tests/dockerfiles/Dockerfile.${variant}"
platforms: ${platform}
tag: latest-${variant}
when:
event:
- tag
alias:
image: docker:cli
secrets: [docker_username, docker_password]
commands:
- docker login -u "$docker_username" -p "$docker_password"
- docker pull danog/madelineproto:latest-alpine
- docker tag danog/madelineproto:latest-alpine danog/madelineproto:latest
- docker push danog/madelineproto:latest
- docker pull danog/madelineproto:next-alpine
- docker pull danog/madelineproto:next-debian
- docker pull danog/madelineproto:next
- docker tag danog/madelineproto:next-alpine danog/madelineproto:alpine
- docker tag danog/madelineproto:next-debian danog/madelineproto:debian
- docker tag danog/madelineproto:next danog/madelineproto:latest
when:
event:
- tag
- push
- push
depends_on:
- "build-docker"