From 78e3ed7d63d565821265656ad410fd4738e121cb Mon Sep 17 00:00:00 2001 From: oscarpocock Date: Sat, 3 Dec 2022 03:30:47 +0000 Subject: [PATCH] Added command variable --- .woodpecker/deploy.yml | 2 +- .woodpecker/destroy.yml | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 .woodpecker/destroy.yml diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml index f184abb..49b32dd 100644 --- a/.woodpecker/deploy.yml +++ b/.woodpecker/deploy.yml @@ -18,6 +18,6 @@ pipeline: secrets: [hetznerkey] commands: - apk add make - - make apply + - make $COMMAND when: event: manual \ No newline at end of file diff --git a/.woodpecker/destroy.yml b/.woodpecker/destroy.yml deleted file mode 100644 index f3cab2e..0000000 --- a/.woodpecker/destroy.yml +++ /dev/null @@ -1,13 +0,0 @@ -branches: - include: [main] - -pipeline: - init: - image: hashicorp/terraform - environment: - - CODE_PATH=./hetzner/template - commands: - - apk add make - - make destroy - when: - event: manual \ No newline at end of file