12 image: ekidd/rust-musl-builder:1.47.0
15 - chown 1000:1000 . -R
17 - name: check formatting
18 image: rustdocker/rust:nightly
20 - /root/.cargo/bin/cargo fmt -- --check
23 image: ekidd/rust-musl-builder:1.47.0
25 - cargo clippy --workspace --tests --all-targets --all-features -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
28 image: ekidd/rust-musl-builder:1.47.0
30 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
35 - sudo apt-get -y install --no-install-recommends espeak postgresql-client
36 - cargo test --workspace --no-fail-fast
39 image: ekidd/rust-musl-builder:1.47.0
42 - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
44 - name: run federation tests
45 image: node:15-alpine3.12
47 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
48 DO_WRITE_HOSTS_FILE: 1
50 - apk add bash curl postgresql-client
51 - bash api_tests/prepare-drone-federation-test.sh
56 - name: make release build and push to docker hub
59 dockerfile: docker/prod/Dockerfile
61 from_secret: docker_username
63 from_secret: docker_password
64 repo: dessalines/lemmy
66 auto_tag_suffix: linux-amd64
71 - name: push to docker manifest
72 image: plugins/manifest
75 from_secret: docker_username
77 from_secret: docker_password
78 target: "dessalines/lemmy:${DRONE_TAG}"
79 template: "dessalines/lemmy:${DRONE_TAG}-OS-ARCH"
90 image: postgres:12-alpine
93 POSTGRES_PASSWORD: password
106 image: rust:1.47-slim-buster
108 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
113 - apt-get -y install --no-install-recommends espeak postgresql-client libssl-dev pkg-config libpq-dev
114 - cargo test --workspace --no-fail-fast
117 # Using Debian here because there seems to be no official Alpine-based Rust docker image for ARM.
119 image: rust:1.47-slim-buster
122 - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev
124 - mv target/debug/lemmy_server target/lemmy_server
126 - name: run federation tests
127 image: node:15-buster-slim
129 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
130 DO_WRITE_HOSTS_FILE: 1
132 - mkdir -p /usr/share/man/man1 /usr/share/man/man7
134 - apt-get -y install --no-install-recommends bash curl libssl-dev pkg-config libpq-dev postgresql-client libc6-dev
135 - bash api_tests/prepare-drone-federation-test.sh
140 - name: make release build and push to docker hub
141 image: plugins/docker
143 dockerfile: docker/prod/Dockerfile.arm
145 from_secret: docker_username
147 from_secret: docker_password
148 repo: dessalines/lemmy
150 auto_tag_suffix: linux-arm64
155 - name: push to docker manifest
156 image: plugins/manifest
159 from_secret: docker_username
161 from_secret: docker_password
162 target: "dessalines/lemmy:${DRONE_TAG}"
163 template: "dessalines/lemmy:${DRONE_TAG}-OS-ARCH"
174 image: postgres:12-alpine
177 POSTGRES_PASSWORD: password