MinioK8sBuckets/.drone.yml

38 lines
1.0 KiB
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: default
steps:
- name: cargo_check
image: rust
commands:
- wget -O /usr/bin/minio https://dl.min.io/server/minio/release/linux-amd64/minio
- wget -O /usr/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc
- chmod +x /usr/bin/minio /usr/bin/mc
- rustup component add clippy
- cargo clippy -- -D warnings
- cargo test
2023-05-09 16:49:02 +00:00
- name: doc
image: python
2023-05-09 17:26:16 +00:00
environment:
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: us-east-1
2023-05-09 17:34:33 +00:00
when:
branch:
- master
2023-05-09 16:49:02 +00:00
commands:
2023-05-09 17:13:51 +00:00
# Build website
2023-05-09 16:49:02 +00:00
- pip install mkdocs-material
2023-05-09 17:13:51 +00:00
- mkdocs build --site-dir public
# Install AWS
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- unzip awscliv2.zip
- ./aws/install
- aws configure set default.s3.signature_version s3v4
# Upload to bucket
- cd public && aws --endpoint-url https://s3.communiquons.org s3 sync . s3://miniok8sbucketsoperator-website