mirror of
https://akkoma.dev/lamp/akkoma-fe.git
synced 2024-11-22 10:08:25 -06:00
8c9356b9fd
Fixes #6 Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: http://akkoma.dev/AkkomaGang/pleroma-fe/pulls/7
51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
pipeline:
|
|
lint:
|
|
when:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
image: node:16
|
|
commands:
|
|
- yarn
|
|
- yarn lint
|
|
- yarn stylelint
|
|
|
|
test:
|
|
when:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
image: node:16
|
|
commands:
|
|
- apt update
|
|
- 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 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 akkoma-fe.zip -r dist
|
|
- rclone copyto akkoma-fe.zip scaleway:akkoma-updates/frontend/akkoma-fe.zip
|