garage/.drone.yml

45 lines
1,023 B
YAML
Raw Normal View History

2021-02-08 15:32:29 +00:00
kind: pipeline
name: default
steps:
- name: restore-cache
image: meltwater/drone-cache:dev
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
bucket: drone-cache
region: garage
mount:
- 'target'
path_style: true
endpoint: https://garage.deuxfleurs.fr
- name: build
2021-02-08 13:58:24 +00:00
image: rust:buster
commands:
- apt-get update
2021-02-08 14:02:03 +00:00
- apt-get install --yes libsodium-dev
2021-02-08 13:58:24 +00:00
- cargo build
2021-02-08 15:32:29 +00:00
- name: rebuild-cache
image: meltwater/drone-cache:dev
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
bucket: drone-cache
region: garage
mount:
- 'target'
path_style: true
endpoint: https://garage.deuxfleurs.fr