From c89b571419ec1b33cd167fc4f16bc8f06a9c1972 Mon Sep 17 00:00:00 2001 From: oscarpocock Date: Sat, 3 Dec 2022 03:27:37 +0000 Subject: [PATCH] Added manual conditional --- .woodpecker/deploy.yml | 8 ++++++-- .woodpecker/destroy.yml | 6 ++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml index 4f3bb15..f184abb 100644 --- a/.woodpecker/deploy.yml +++ b/.woodpecker/deploy.yml @@ -1,5 +1,5 @@ branches: - exclude: [*] + include: [main] pipeline: init: @@ -9,6 +9,8 @@ pipeline: commands: - apk add make - make init + when: + event: manual apply: image: hashicorp/terraform environment: @@ -16,4 +18,6 @@ pipeline: secrets: [hetznerkey] commands: - apk add make - - make apply \ No newline at end of file + - make apply + when: + event: manual \ No newline at end of file diff --git a/.woodpecker/destroy.yml b/.woodpecker/destroy.yml index 1025e73..f3cab2e 100644 --- a/.woodpecker/destroy.yml +++ b/.woodpecker/destroy.yml @@ -1,5 +1,5 @@ branches: - exclude: [*] + include: [main] pipeline: init: @@ -8,4 +8,6 @@ pipeline: - CODE_PATH=./hetzner/template commands: - apk add make - - make destroy \ No newline at end of file + - make destroy + when: + event: manual \ No newline at end of file