This repository has been archived on 2022-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
docs/.woodpecker/.release.yml
FloatingGhost 9bbdb6a192
Some checks failed
ci/woodpecker/push/release Pipeline failed
build a zip because scaleway SLOW
2022-07-02 22:11:23 +01:00

22 lines
705 B
YAML

pipeline:
build:
when:
event:
- push
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
- pip install -r requirements.txt
- ./manage.sh all
- zip -r site/* docs.zip
- rclone copy docs.zip scaleway:akkoma-docs/$CI_COMMIT_BRANCH/