From fabb1cba0ce4e42a9d4b5ff3a278588f88eb6845 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 7 Dec 2023 16:01:30 +0100 Subject: [PATCH 1/2] chore: enable wp --- .woodpecker/demo.yml | 6 ++++++ .woodpecker/test.yml | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .woodpecker/demo.yml create mode 100644 .woodpecker/test.yml diff --git a/.woodpecker/demo.yml b/.woodpecker/demo.yml new file mode 100644 index 0000000..f5c75d0 --- /dev/null +++ b/.woodpecker/demo.yml @@ -0,0 +1,6 @@ +--- +steps: + demo: + image: "alpine" + commands: + - echo 'Demo' diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml new file mode 100644 index 0000000..391638d --- /dev/null +++ b/.woodpecker/test.yml @@ -0,0 +1,19 @@ +--- +steps: + test_1: + image: "alpine" + commands: + - echo 'Test 1' + - sleep 10 + + test_2: + image: "alpine" + commands: + - echo 'Test 2' + - sleep 5 + + test_3: + image: "alpine" + commands: + - echo 'Test 3' + - sleep 5 -- 2.45.2 From 932f39a3a033ab4ec89e08aaba1a348b7ab42a95 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 7 Dec 2023 16:03:32 +0100 Subject: [PATCH 2/2] add conditions --- .woodpecker/demo.yml | 6 ++++++ .woodpecker/test.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.woodpecker/demo.yml b/.woodpecker/demo.yml index f5c75d0..16a7878 100644 --- a/.woodpecker/demo.yml +++ b/.woodpecker/demo.yml @@ -1,4 +1,10 @@ --- +when: + - event: [pull_request, tag] + - event: [push, manual] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + steps: demo: image: "alpine" diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 391638d..7197cd1 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -1,4 +1,10 @@ --- +when: + - event: [pull_request, tag] + - event: [push, manual] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + steps: test_1: image: "alpine" -- 2.45.2