mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-11-05 14:32:56 +00:00
dd7805d052
* Rough initial progress on webhooks. * Better webhook error handling, use all ingesters. * Include hash in webhook data. * Always pull Rust image. * Fix missing features.
126 lines
2.9 KiB
YAML
126 lines
2.9 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: Run tests
|
|
pull: always
|
|
image: rust:1-slim-buster
|
|
commands:
|
|
- 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
|
|
- export SQLX_OFFLINE=true
|
|
- 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
|
|
|
|
- name: Build FuzzySearch API
|
|
pull: always
|
|
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
|
|
paths:
|
|
- fuzzysearch/**
|
|
- Cargo.lock
|
|
|
|
- name: Build Ingester e621
|
|
pull: always
|
|
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
|
|
paths:
|
|
- fuzzysearch-ingest-e621/**
|
|
- Cargo.lock
|
|
|
|
- name: Build Ingester FurAffinity
|
|
pull: always
|
|
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
|
|
paths:
|
|
- fuzzysearch-ingest-furaffinity/**
|
|
- Cargo.lock
|
|
|
|
- name: Build Ingester Weasyl
|
|
pull: always
|
|
image: plugins/docker
|
|
settings:
|
|
auto_tag: true
|
|
dockerfile: fuzzysearch-ingest-weasyl/Dockerfile
|
|
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
|
|
paths:
|
|
- fuzzysearch-ingest-weasyl/**
|
|
- Cargo.lock
|
|
|
|
---
|
|
kind: signature
|
|
hmac: eef34ef3454a31e09d05c43b06f8639fa6c249a8e3a938bd9e8e0edcb949cc4d
|
|
|
|
...
|