mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-11-23 15:22:31 +00:00
Build webhook image, change base images.
This commit is contained in:
parent
3974f85ce8
commit
e00f99686e
23
.drone.yml
23
.drone.yml
@ -55,6 +55,27 @@ steps:
|
|||||||
- fuzzysearch/**
|
- fuzzysearch/**
|
||||||
- Cargo.lock
|
- Cargo.lock
|
||||||
|
|
||||||
|
- name: Build FuzzySearch Webhook
|
||||||
|
pull: always
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
auto_tag: true
|
||||||
|
dockerfile: fuzzysearch-webhook/Dockerfile
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
registry: registry.huefox.com
|
||||||
|
repo: registry.huefox.com/fuzzysearch/webhook
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
paths:
|
||||||
|
- fuzzysearch-webhook/**
|
||||||
|
- Cargo.lock
|
||||||
|
|
||||||
- name: Build Ingester e621
|
- name: Build Ingester e621
|
||||||
pull: always
|
pull: always
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
@ -120,6 +141,6 @@ steps:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: eef34ef3454a31e09d05c43b06f8639fa6c249a8e3a938bd9e8e0edcb949cc4d
|
hmac: a43b3686de2a1ac6b959596ed9254f0a07453c32f6aadf8098771e6e1e4d9cdc
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -5,7 +5,7 @@ RUN apt-get update -y && apt-get install -y libssl-dev pkg-config python3 python
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo install --root / --path ./fuzzysearch-ingest-furaffinity
|
RUN cargo install --root / --path ./fuzzysearch-ingest-furaffinity
|
||||||
|
|
||||||
FROM rustlang/rust:nightly-slim
|
FROM debian:buster-slim
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update -y && \
|
||||||
apt-get install -y openssl ca-certificates python3 python3-pip && \
|
apt-get install -y openssl ca-certificates python3 python3-pip && \
|
||||||
python3 -m pip --no-cache-dir install cfscrape && \
|
python3 -m pip --no-cache-dir install cfscrape && \
|
||||||
|
@ -5,7 +5,7 @@ RUN apt-get update -y && apt-get install -y libssl-dev pkg-config
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo install --root / --path ./fuzzysearch-ingest-weasyl
|
RUN cargo install --root / --path ./fuzzysearch-ingest-weasyl
|
||||||
|
|
||||||
FROM rustlang/rust:nightly-slim
|
FROM debian:buster-slim
|
||||||
RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=builder /bin/fuzzysearch-ingest-weasyl /bin/fuzzysearch-ingest-weasyl
|
COPY --from=builder /bin/fuzzysearch-ingest-weasyl /bin/fuzzysearch-ingest-weasyl
|
||||||
CMD ["/bin/fuzzysearch-ingest-weasyl"]
|
CMD ["/bin/fuzzysearch-ingest-weasyl"]
|
||||||
|
12
fuzzysearch-webhook/Dockerfile
Normal file
12
fuzzysearch-webhook/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM rust:1-slim-buster AS builder
|
||||||
|
WORKDIR /src
|
||||||
|
ENV SQLX_OFFLINE=true
|
||||||
|
RUN apt-get update -y && apt-get install -y libssl-dev pkg-config
|
||||||
|
COPY . .
|
||||||
|
RUN cargo install --root / --path ./fuzzysearch-webhook
|
||||||
|
|
||||||
|
FROM debian:buster-slim
|
||||||
|
WORKDIR /app
|
||||||
|
RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||||
|
COPY --from=builder /bin/fuzzysearch-webhook /bin/fuzzysearch-webhook
|
||||||
|
CMD ["/bin/fuzzysearch-webhook"]
|
Loading…
Reference in New Issue
Block a user