garage/.drone.yml

135 lines
2.9 KiB
YAML
Raw Normal View History

2021-04-05 12:10:28 +02:00
---
2021-02-08 16:32:29 +01:00
kind: pipeline
name: default
2021-02-17 18:46:36 +01:00
workspace:
base: /drone/garage
2021-02-17 18:46:36 +01:00
volumes:
- name: cargo_home
temp: {}
2021-02-08 16:32:29 +01:00
steps:
- name: restore-cache
image: meltwater/drone-cache:dev
volumes:
- name: cargo_home
path: /drone/cargo
2021-02-08 16:32:29 +01:00
environment:
AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: cache_aws_secret_access_key
pull: true
settings:
restore: true
2021-02-10 13:11:13 +01:00
archive_format: "gzip"
2021-02-08 16:32:29 +01:00
bucket: drone-cache
2021-03-19 14:15:19 +01:00
cache_key: '{{ .Repo.Name }}_{{ checksum "Cargo.lock" }}_{{ arch }}_{{ os }}_gzip'
2021-02-08 16:32:29 +01:00
region: garage
mount:
- '/drone/cargo'
2021-04-08 20:13:28 +02:00
- 'target'
2021-02-08 16:32:29 +01:00
path_style: true
endpoint: https://garage.deuxfleurs.fr
2021-04-08 20:13:28 +02:00
when:
branch:
- nonexistent_skip_this_step
2021-02-08 16:32:29 +01:00
- name: build
image: lxpz/garage_builder_amd64:1
volumes:
- name: cargo_home
path: /drone/cargo
2021-02-17 18:46:36 +01:00
environment:
CARGO_HOME: /drone/cargo
2021-02-08 14:58:24 +01:00
commands:
2021-02-17 18:46:36 +01:00
- pwd
- cargo fmt -- --check
2021-02-08 14:58:24 +01:00
- cargo build
2021-02-17 18:46:36 +01:00
- name: cargo-test
image: lxpz/garage_builder_amd64:1
volumes:
- name: cargo_home
path: /drone/cargo
2021-02-17 18:46:36 +01:00
environment:
CARGO_HOME: /drone/cargo
commands:
- cargo test
2021-02-08 16:32:29 +01:00
- name: rebuild-cache
image: meltwater/drone-cache:dev
volumes:
- name: cargo_home
path: /drone/cargo
2021-02-08 16:32:29 +01:00
environment:
AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: cache_aws_secret_access_key
pull: true
settings:
rebuild: true
2021-02-10 12:53:00 +01:00
archive_format: "gzip"
2021-02-08 16:32:29 +01:00
bucket: drone-cache
2021-03-19 14:15:19 +01:00
cache_key: '{{ .Repo.Name }}_{{ checksum "Cargo.lock" }}_{{ arch }}_{{ os }}_gzip'
2021-02-08 16:32:29 +01:00
region: garage
mount:
- '/drone/cargo'
2021-04-08 20:13:28 +02:00
- 'target'
2021-02-08 16:32:29 +01:00
path_style: true
endpoint: https://garage.deuxfleurs.fr
2021-04-08 20:13:28 +02:00
when:
branch:
- nonexistent_skip_this_step
2021-02-17 18:46:36 +01:00
- name: smoke-test
image: lxpz/garage_builder_amd64:1
volumes:
- name: cargo_home
path: /drone/cargo
2021-02-17 18:46:36 +01:00
environment:
CARGO_HOME: /drone/cargo
commands:
- ./script/test-smoke.sh || (cat /tmp/garage.log; false)
2021-03-19 14:25:57 +01:00
---
kind: pipeline
name: website
steps:
- name: build
image: hrektts/mdbook
commands:
- cd doc/book
- mdbook build
- name: upload
image: plugins/s3
settings:
bucket: garagehq.deuxfleurs.fr
access_key:
from_secret: garagehq_aws_access_key_id
secret_key:
from_secret: garagehq_aws_secret_access_key
source: doc/book/book/**/*
strip_prefix: doc/book/book/
target: /
path_style: true
endpoint: https://garage.deuxfleurs.fr
region: garage
2021-03-19 14:29:37 +01:00
when:
2021-04-05 23:41:50 +02:00
event:
- push
2021-03-19 14:29:37 +01:00
branch:
- main
2021-03-22 12:49:11 +01:00
repo:
- Deuxfleurs/garage
2021-03-19 14:25:57 +01:00
2021-04-05 12:10:28 +02:00
---
kind: signature
2021-04-08 20:13:28 +02:00
hmac: de82026387bd09e547dbc9cc5d232fd865204b4f393d32508c50b58f8e60611d
2021-04-05 12:10:28 +02:00
...