garage/.drone.yml

49 lines
1.2 KiB
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
2021-02-10 12:11:13 +00:00
archive_format: "gzip"
2021-02-08 15:32:29 +00:00
bucket: drone-cache
2021-02-10 12:11:13 +00:00
cache_key: '{{ .Repo.Name }}_{{ checksum "Cargo.lock" }}_{{ arch }}_{{ os }}_gzip'
2021-02-08 15:32:29 +00:00
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
2021-02-10 11:53:00 +00:00
archive_format: "gzip"
2021-02-08 15:32:29 +00:00
bucket: drone-cache
2021-02-10 12:11:13 +00:00
cache_key: '{{ .Repo.Name }}_{{ checksum "Cargo.lock" }}_{{ arch }}_{{ os }}_gzip'
2021-02-08 15:32:29 +00:00
region: garage
mount:
- 'target'
path_style: true
endpoint: https://garage.deuxfleurs.fr