1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:18:58 +01:00
MadelineProto/.woodpecker/.build-docker.yml
2023-05-29 21:29:57 +02:00

84 lines
1.9 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:
variants:
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
variants-tag:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: danog/madelineproto
dockerfile: "tests/dockerfiles/Dockerfile.${variant}"
platforms: ${platform}
tag: ${variant}
cache_from: danog/madelineproto:next-${variant}
cache_to: type=inline
when:
event:
- tag
alias:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: danog/madelineproto
dockerfile: "tests/dockerfiles/Dockerfile.debian"
platforms: ${platform}
tag: next
cache_from: danog/madelineproto:next-${variant}
cache_to: type=inline
when:
event:
- tag
- push
matrix:
variant: "debian"
alias-tag:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: danog/madelineproto
dockerfile: "tests/dockerfiles/Dockerfile.debian"
platforms: ${platform}
tag: latest
cache_from: danog/madelineproto:next-${variant}
cache_to: type=inline
when:
event:
- tag
matrix:
variant: "debian"