From c7e9ccd318b46bfc1da2c6429747c46b1d5af588 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Wed, 15 Jun 2022 17:05:15 +0100 Subject: [PATCH] add woodpecker config --- .woodpecker.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 00000000..1c308f7d --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,46 @@ +pipeline: + lint: + when: + event: + - push + commands: + - yarn + - yarn lint + - yarn stylelint + + test: + when: + event: + - push + image: node:16 + commands: + - apt install firefox-esr -y --no-install-recommends + - yarn + - yarn unit + + build: + when: + event: + - tag + image: node:16 + commands: + - yarn + - yarn build + + release: + when: + event: + - tag + image: node:16 + secrets: + - SCW_ACCESS_KEY + - SCW_SECRET_KEY + - SCW_DEFAULT_ORGANIZATION_ID + commands: + - 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 akkoma-fe.zip -r dist + - rclone copyto akkoma-fe.zip scaleway:akkoma-updates/frontend/akkoma-fe.zip