mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-26 18:54:11 +00:00
d2a185c013
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/73
28 lines
776 B
YAML
28 lines
776 B
YAML
pipeline:
|
|
build:
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- develop
|
|
- stable
|
|
secrets:
|
|
- SCW_ACCESS_KEY
|
|
- SCW_SECRET_KEY
|
|
- SCW_DEFAULT_ORGANIZATION_ID
|
|
environment:
|
|
CI: "true"
|
|
image: python:3.10-slim
|
|
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/$CI_COMMIT_BRANCH/
|