From 9a8b3b0c138cd3cffae69f0ee7bec882e791a757 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Fri, 17 Jun 2022 13:54:54 +0100 Subject: [PATCH] add woodpecker config --- .woodpecker.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 00000000..d268a8da --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,49 @@ +pipeline: + lint: + when: + event: + - push + - pull_request + image: node:16 + commands: + - yarn + - yarn lint + + test: + when: + event: + - push + - pull_request + image: node:16 + commands: + - apt update + - apt install firefox-esr -y --no-install-recommends + - yarn + - yarn test + + build: + when: + event: + - tag + image: node:16 + commands: + - yarn + - yarn build:prod + + release: + when: + event: + - tag + image: node:16 + secrets: + - SCW_ACCESS_KEY + - SCW_SECRET_KEY + - SCW_DEFAULT_ORGANIZATION_ID + commands: + - apt-get update && apt-get install -y rclone wget zip + - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64 + - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli + - chmod +x scaleway-cli + - ./scaleway-cli object config install type=rclone + - zip admin-fe.zip -r dist + - rclone copyto admin-fe.zip scaleway:akkoma-updates/frontend/admin-fe.zip