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