From 0963e34707f6a2defd46a63fb9bd45619bce62eb Mon Sep 17 00:00:00 2001 From: Thomas Renger Date: Sat, 7 Sep 2024 17:47:01 +0200 Subject: [PATCH] Join both builds --- .woodpecker/docker.yml | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/.woodpecker/docker.yml b/.woodpecker/docker.yml index fa185e4..eea53ce 100644 --- a/.woodpecker/docker.yml +++ b/.woodpecker/docker.yml @@ -1,11 +1,36 @@ -pipeline: - docker-build: +steps: + build-bot: secrets: [docker_username, docker_password] image: woodpeckerci/plugin-docker-buildx settings: context: bot dockerfile: bot/Dockerfile repo: dentaku/vollmond-bot - tag: latest + tags: + - latest + - v0.1 auto-tag: true - platforms: [linux/amd64, linux/arm64] \ No newline at end of file + platforms: [linux/amd64, linux/arm64] + when: + - event: push + path: + include: [ 'bot/**' ] + - event: cron + - event: manual + + build-webpage: + secrets: [docker_username, docker_password] + image: woodpeckerci/plugin-docker-buildx + settings: + repo: dentaku/vollmond + tags: + - latest + - v1.0 + auto-tag: true + platforms: [linux/amd64, linux/arm64] + when: + - event: push + path: + include: [ 'wwwroot/**', 'Dockerfile' ] + - event: cron + - event: manual \ No newline at end of file