mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 09:58:59 +01:00
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
matrix:
|
|
variant:
|
|
- "debian"
|
|
- "alpine"
|
|
platform:
|
|
- linux/arm64
|
|
|
|
platform: ${platform}
|
|
|
|
clone:
|
|
git:
|
|
when:
|
|
event:
|
|
- tag
|
|
- push
|
|
image: woodpeckerci/plugin-git:v1.5.0
|
|
settings:
|
|
depth: 1
|
|
lfs: false
|
|
recursive: false
|
|
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: next-${variant}
|
|
cache_from: danog/madelineproto:next-${variant}
|
|
cache_to: type=inline
|
|
when:
|
|
event:
|
|
- tag
|
|
- push
|
|
|
|
alias:
|
|
image: docker:cli
|
|
secrets: [docker_username, docker_password]
|
|
environment:
|
|
- DUSER=${docker_username}
|
|
- DPASS=${docker_password}
|
|
commands:
|
|
- docker login -p "$DUSER" -u "$DPASS"
|
|
- docker pull danog/madelineproto:next-debian
|
|
- docker tag danog/madelineproto:next-debian danog/madelineproto:next
|
|
- docker push danog/madelineproto:next
|
|
when:
|
|
event:
|
|
- tag
|
|
- push
|