2022-06-15 19:22:02 +02:00
|
|
|
pipeline:
|
|
|
|
lint:
|
|
|
|
when:
|
|
|
|
event:
|
2022-06-16 13:41:08 +02:00
|
|
|
- pull_request
|
2022-11-15 16:47:32 +01:00
|
|
|
image: node:18
|
2022-06-15 19:22:02 +02:00
|
|
|
commands:
|
|
|
|
- yarn
|
|
|
|
- yarn lint
|
2022-11-22 15:40:25 +01:00
|
|
|
#- yarn stylelint
|
2022-06-15 19:22:02 +02:00
|
|
|
|
|
|
|
test:
|
|
|
|
when:
|
|
|
|
event:
|
2022-06-16 13:41:08 +02:00
|
|
|
- pull_request
|
2022-11-15 16:47:32 +01:00
|
|
|
image: node:18
|
2022-06-15 19:22:02 +02:00
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt install firefox-esr -y --no-install-recommends
|
|
|
|
- yarn
|
|
|
|
- yarn unit
|
|
|
|
|
|
|
|
build:
|
|
|
|
when:
|
|
|
|
event:
|
2022-06-26 19:20:41 +02:00
|
|
|
- push
|
|
|
|
branch:
|
|
|
|
- develop
|
2022-07-15 12:11:34 +02:00
|
|
|
- stable
|
2022-11-15 16:47:32 +01:00
|
|
|
image: node:18
|
2022-06-15 19:22:02 +02:00
|
|
|
commands:
|
|
|
|
- yarn
|
|
|
|
- yarn build
|
|
|
|
|
|
|
|
release:
|
|
|
|
when:
|
|
|
|
event:
|
2022-06-26 19:13:57 +02:00
|
|
|
- push
|
|
|
|
branch:
|
|
|
|
- develop
|
2022-07-15 12:11:34 +02:00
|
|
|
- stable
|
2022-11-15 16:47:32 +01:00
|
|
|
image: node:18
|
2022-06-15 19:22:02 +02:00
|
|
|
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
|
2022-07-15 12:42:56 +02:00
|
|
|
- rclone copyto akkoma-fe.zip scaleway:akkoma-updates/frontend/$CI_COMMIT_BRANCH/akkoma-fe.zip
|
2022-07-15 12:11:34 +02: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
|
|
|
|
- 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
|
|
|
|
- cd docs
|
|
|
|
- pip install -r requirements.txt
|
|
|
|
- mkdocs build
|
|
|
|
- zip -r docs.zip site/*
|
|
|
|
- cd site
|
|
|
|
- rclone copy . scaleway:akkoma-docs/frontend/$CI_COMMIT_BRANCH/
|