akkoma-fe/.woodpecker.yml

84 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2024-05-28 02:14:37 +00:00
labels:
platform: linux/amd64
steps:
lint:
when:
event:
- pull_request
2024-05-28 02:14:37 +00:00
image: node:20
commands:
- yarn
- yarn lint
test:
when:
event:
- pull_request
2024-05-28 02:14:37 +00:00
image: node:20
commands:
- apt update
- apt install firefox-esr -y --no-install-recommends
2024-05-28 02:14:37 +00:00
- yarn
- yarn unit
build:
when:
event:
2022-06-26 17:20:41 +00:00
- push
branch:
- develop
2022-07-15 10:11:34 +00:00
- stable
2024-05-28 02:14:37 +00:00
image: node:20
commands:
- yarn
- yarn build
release:
when:
event:
- push
branch:
- develop
2022-07-15 10:11:34 +00:00
- stable
2024-05-28 02:14:37 +00:00
image: node:20
secrets:
- SCW_ACCESS_KEY
- SCW_SECRET_KEY
- SCW_DEFAULT_ORGANIZATION_ID
commands:
- apt-get update && apt-get install -y rclone wget zip
2024-05-28 21:31:46 +00:00
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.30.0/scaleway-cli_2.30.0_linux_amd64
- mv scaleway-cli_2.30.0_linux_amd64 scaleway-cli
- chmod +x scaleway-cli
- ./scaleway-cli object config install type=rclone
- zip akkoma-fe.zip -r dist
2022-07-15 10:42:56 +00:00
- rclone copyto akkoma-fe.zip scaleway:akkoma-updates/frontend/$CI_COMMIT_BRANCH/akkoma-fe.zip
2022-07-15 10:11:34 +00:00
docs:
when:
event:
- push
branch:
- develop
- stable
environment:
CI: "true"
image: python:3.10-slim
secrets:
- SCW_ACCESS_KEY
- SCW_SECRET_KEY
- SCW_DEFAULT_ORGANIZATION_ID
commands:
- apt-get update && apt-get install -y rclone wget git zip
2024-05-28 21:31:46 +00:00
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.30.0/scaleway-cli_2.30.0_linux_amd64
- mv scaleway-cli_2.30.0_linux_amd64 scaleway-cli
2022-07-15 10:11:34 +00:00
- chmod +x scaleway-cli
- ./scaleway-cli object config install type=rclone
- cd docs
- pip install -r requirements.txt
- mkdocs build
- zip -r docs.zip site/*
- cd site
2024-05-28 21:33:15 +00:00
- rclone copy . scaleway:akkoma-docs/frontend/$CI_COMMIT_BRANCH/