1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:14:39 +01:00
MadelineProto/.woodpecker/.build-docker.yml
2023-05-28 20:45:51 +02:00

49 lines
1.1 KiB
YAML

matrix:
variant:
- "debian"
- "alpine"
platform:
- linux/arm64
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}
when:
event:
- tag
- push
alias:
image: docker:cli
secrets: [docker_username, docker_password]
commands:
- echo "$docker_password" | docker login -u "$docker_username" --password-stdin
- docker pull danog/madelineproto:next-alpine
- docker tag danog/madelineproto:next-alpine danog/madelineproto:next
- docker push danog/madelineproto:next
when:
event:
- tag
- push
matrix:
variant: "alpine"