From 1f1aa381e1819e14231bb142ff3155f8c201a047 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sun, 1 May 2022 12:11:07 +0200 Subject: [PATCH] ci: corrected docs deploy step & re-enabled deploy workflow --- .woodpecker/.deploy.yml | 16 ++++++++++++++++ .woodpecker/.docs.yml | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .woodpecker/.deploy.yml diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml new file mode 100644 index 00000000..dd77fb98 --- /dev/null +++ b/.woodpecker/.deploy.yml @@ -0,0 +1,16 @@ +branches: 'dev' +platform: 'linux/amd64' +depends_on: + - 'docker' + +skip_clone: true + +pipeline: + webhooks: + image: 'curlimages/curl' + secrets: + - 'webhook_app' + - 'webhook_cron' + commands: + - 'curl -XPOST -s --fail $WEBHOOK_APP' + - 'curl -XPOST -s --fail $WEBHOOK_CRON' diff --git a/.woodpecker/.docs.yml b/.woodpecker/.docs.yml index 51d49f74..fc525e27 100644 --- a/.woodpecker/.docs.yml +++ b/.woodpecker/.docs.yml @@ -25,7 +25,7 @@ pipeline: secrets: - 'site_api_key' commands: - - 'curl -XPOST --fail -s -H "Authorization: Bearer $SITE_API_KEY" -T docs.tar.gz https://rustybever.be/api/deploy?dir=vieter-docs' + - 'curl -XPOST --fail -s -H "Authorization: Bearer $SITE_API_KEY" -T docs.tar.gz https://rustybever.be/api/deploy?dir=docs-vieter' when: event: push branch: dev @@ -36,7 +36,7 @@ pipeline: secrets: - 'site_api_key' commands: - - 'curl -XPOST --fail -s -H "Authorization: Bearer $SITE_API_KEY" -T api-docs.tar.gz https://rustybever.be/api/deploy?dir=vieter-api-docs' + - 'curl -XPOST --fail -s -H "Authorization: Bearer $SITE_API_KEY" -T api-docs.tar.gz https://rustybever.be/api/deploy?dir=api-docs-vieter' when: event: push branch: dev