fuzzysearch/.drone.yml

121 lines
2.8 KiB
YAML
Raw Normal View History

2020-01-17 23:13:24 +00:00
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
2021-02-21 05:30:38 +00:00
- name: Run tests
2020-12-07 02:59:37 +00:00
image: rust:1-slim-buster
commands:
2020-12-08 00:23:23 +00:00
- apt-get update -y
- apt-get install -y wget libssl-dev pkg-config
- apt-get install -y libavcodec-dev libavformat-dev libavutil-dev libavdevice-dev clang llvm
- apt-get install -y python3 python3-pip
- pip3 install cfscrape
- wget -O sccache.tar.gz https://github.com/mozilla/sccache/releases/download/0.2.13/sccache-0.2.13-x86_64-unknown-linux-musl.tar.gz
- tar zxvf sccache.tar.gz
- export RUSTC_WRAPPER=$(pwd)/sccache-0.2.13-x86_64-unknown-linux-musl/sccache
2021-02-20 22:36:48 +00:00
- export SQLX_OFFLINE=true
2020-12-08 00:23:23 +00:00
- cargo build
- cargo test
- $(pwd)/sccache-0.2.13-x86_64-unknown-linux-musl/sccache --show-stats
environment:
AWS_ACCESS_KEY_ID:
from_secret: sccache_s3_access_key
AWS_SECRET_ACCESS_KEY:
from_secret: sccache_s3_secret_key
SCCACHE_BUCKET: cache
SCCACHE_ENDPOINT:
from_secret: sccache_s3_endpoint
SCCACHE_S3_USE_SSL: true
2021-02-21 05:30:38 +00:00
- name: Build FuzzySearch API
image: plugins/docker
settings:
auto_tag: true
dockerfile: fuzzysearch/Dockerfile
password:
from_secret: docker_password
registry: registry.huefox.com
repo: registry.huefox.com/fuzzysearch/api
username:
from_secret: docker_username
when:
branch:
- master
event:
- push
2021-02-21 05:30:38 +00:00
paths:
- fuzzysearch/**
- Cargo.lock
2021-02-21 05:30:38 +00:00
- name: Build Ingester e621
image: plugins/docker
settings:
auto_tag: true
dockerfile: fuzzysearch-ingest-e621/Dockerfile
password:
from_secret: docker_password
registry: registry.huefox.com
repo: registry.huefox.com/fuzzysearch/ingest-e621
username:
from_secret: docker_username
when:
branch:
- master
event:
- push
2021-02-21 05:30:38 +00:00
paths:
- fuzzysearch-ingest-e621/**
- Cargo.lock
2021-02-21 05:30:38 +00:00
- name: Build Ingester FurAffinity
image: plugins/docker
settings:
auto_tag: true
dockerfile: fuzzysearch-ingest-furaffinity/Dockerfile
password:
from_secret: docker_password
registry: registry.huefox.com
repo: registry.huefox.com/fuzzysearch/ingest-furaffinity
username:
from_secret: docker_username
when:
branch:
- master
event:
- push
2021-02-21 05:30:38 +00:00
paths:
- fuzzysearch-ingest-furaffinity/**
- Cargo.lock
2021-02-21 05:30:38 +00:00
- name: Build Ingester Weasyl
image: plugins/docker
settings:
auto_tag: true
2021-02-21 06:59:33 +00:00
dockerfile: fuzzysearch-ingest-weasyl/Dockerfile
2021-02-21 05:30:38 +00:00
password:
from_secret: docker_password
registry: registry.huefox.com
repo: registry.huefox.com/fuzzysearch/ingest-weasyl
username:
from_secret: docker_username
when:
branch:
- master
event:
- push
2021-02-21 05:30:38 +00:00
paths:
- fuzzysearch-ingest-weasyl/**
- Cargo.lock
2021-02-21 05:30:38 +00:00
---
kind: signature
hmac: 6c87d24325f6646ff0fe06eaf62e94cf53508cdf73dc303607e7ec74a8b4486e
2020-01-17 23:13:24 +00:00
...