initial commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Samuel Philipp 2020-09-06 13:24:44 +02:00
commit 6c6d7848f7
3 changed files with 78 additions and 0 deletions

65
.drone.yml Normal file
View file

@ -0,0 +1,65 @@
kind: pipeline
type: docker
name: linux-amd64
platform:
os: linux
arch: amd64
steps:
- name: docker
image: plugins/docker
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
repo: samuelph/synapse-compress-state
username:
from_secret: USERNAME
password:
from_secret: PASSWORD
---
kind: pipeline
type: docker
name: linux-arm
platform:
os: linux
arch: arm
steps:
- name: docker
image: plugins/docker
settings:
auto_tag: true
auto_tag_suffix: linux-arm
repo: samuelph/synapse-compress-state
username:
from_secret: USERNAME
password:
from_secret: PASSWORD
---
kind: pipeline
type: docker
name: manifest
steps:
- name: publish
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
target: samuelph/synapse-compress-state
template: samuelph/synapse-compress-state:OS-ARCH
platforms:
- linux/amd64
- linux/arm
username:
from_secret: USERNAME
password:
from_secret: PASSWORD
depends_on:
- linux-amd64
- linux-arm

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.idea/
*.iml

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM rust:1.46.0 as builder
RUN git clone https://github.com/matrix-org/rust-synapse-compress-state.git && \
cargo install --path rust-synapse-compress-state
FROM debian:buster-slim
RUN apt update && \
apt install -y postgresql-client
COPY --from=builder /usr/local/cargo/bin/synapse-compress-state /usr/local/bin/synapse-compress-state