diff --git a/.woodpecker/.deploy-docker.yml b/.woodpecker/.latest.yml similarity index 60% rename from .woodpecker/.deploy-docker.yml rename to .woodpecker/.latest.yml index f099ad1c..5172f216 100644 --- a/.woodpecker/.deploy-docker.yml +++ b/.woodpecker/.latest.yml @@ -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 \ No newline at end of file + - push + platform: linux/riscv64 + +depends_on: + - variants \ No newline at end of file diff --git a/.woodpecker/.variants.yml b/.woodpecker/.variants.yml new file mode 100644 index 00000000..cc047e32 --- /dev/null +++ b/.woodpecker/.variants.yml @@ -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 \ No newline at end of file