Add woodpecker build

This commit is contained in:
Daniil Gentili 2023-05-28 19:53:36 +02:00
parent 520b73c1e6
commit 2bbb4b624d
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 40 additions and 24 deletions

View File

@ -1,12 +1,3 @@
matrix:
variant:
- "alpineedge/cli"
- "alpineedge/fpm"
- "sid/cli"
- "sid/fpm"
platform:
- linux/riscv64
clone:
git:
when:
@ -20,29 +11,18 @@ clone:
tags: true
pipeline:
docker:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: danog/php
dockerfile: "8.2/${variant}/Dockerfile"
platforms: ${platform}
tag: 8.2-${variant}
when:
event:
- push
docker-latest:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: danog/madelineproto
dockerfile: "8.2/sid/cli/Dockerfile"
platforms: ${platform}
platforms: linux/riscv64
tag: latest
when:
event:
- push
platform: linux/riscv64
docker-latest-8.2:
image: woodpeckerci/plugin-docker-buildx
@ -50,8 +30,12 @@ pipeline:
settings:
repo: danog/madelineproto
dockerfile: "8.2/sid/cli/Dockerfile"
platforms: ${platform}
platforms: linux/riscv64
tag: 8.2
when:
event:
- push
platform: linux/riscv64
depends_on:
- variants

32
.woodpecker/.variants.yml Normal file
View File

@ -0,0 +1,32 @@
matrix:
variant:
- "alpineedge/cli"
- "alpineedge/fpm"
- "sid/cli"
- "sid/fpm"
clone:
git:
when:
event:
- push
image: woodpeckerci/plugin-git:v1.5.0
settings:
depth: 1
lfs: false
recursive: false
tags: true
pipeline:
docker:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: danog/php
dockerfile: "8.2/${variant}/Dockerfile"
platforms: linux/riscv64
tag: 8.2-${variant}
when:
event:
- push
platform: linux/riscv64