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:19:11 +02:00
parent 94548afa3f
commit b4e571478e
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 18 additions and 17 deletions

View File

@ -19,7 +19,7 @@ clone:
tags: true
pipeline:
docker:
build:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
@ -32,14 +32,14 @@ pipeline:
- tag
- push
docker-next:
image: woodpeckerci/plugin-docker-buildx
alias:
image: docker:cli
secrets: [docker_username, docker_password]
settings:
repo: danog/madelineproto
dockerfile: "tests/dockerfiles/Dockerfile.alpine"
platforms: ${platform}
tag: next
commands:
- docker login -u "$docker_username" -p "$docker_password"
- docker pull danog/madelineproto:next-alpine
- docker tag danog/madelineproto:next-alpine danog/madelineproto:next
- docker push danog/madelineproto:next
when:
event:
- tag

View File

@ -18,7 +18,7 @@ clone:
tags: true
pipeline:
docker:
build:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
@ -30,14 +30,15 @@ pipeline:
event:
- tag
docker-latest:
image: woodpeckerci/plugin-docker-buildx
alias:
image: docker:cli
secrets: [docker_username, docker_password]
settings:
repo: danog/madelineproto
dockerfile: "tests/dockerfiles/Dockerfile.alpine"
platforms: ${platform}
tag: latest
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
when:
event:
- tag
- tag
- push