12 image: ekidd/rust-musl-builder:1.50.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.50.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.50.0
30 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
34 - sudo apt-get -y install --no-install-recommends espeak postgresql-client
35 - cargo test --workspace --no-fail-fast
38 image: ekidd/rust-musl-builder:1.50.0
41 - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
43 - name: run federation tests
44 image: node:15-alpine3.12
46 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
47 DO_WRITE_HOSTS_FILE: 1
49 - apk add bash curl postgresql-client
50 - bash api_tests/prepare-drone-federation-test.sh
55 - name: make release build and push to docker hub
58 dockerfile: docker/prod/Dockerfile
60 from_secret: docker_username
62 from_secret: docker_password
63 repo: dessalines/lemmy
65 auto_tag_suffix: linux-amd64
70 - name: push to docker manifest
71 image: plugins/manifest
74 from_secret: docker_username
76 from_secret: docker_password
77 target: "dessalines/lemmy:${DRONE_TAG}"
78 template: "dessalines/lemmy:${DRONE_TAG}-OS-ARCH"
89 image: postgres:12-alpine
92 POSTGRES_PASSWORD: password
105 image: rust:1.50-slim-buster
107 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
111 - apt-get -y install --no-install-recommends espeak postgresql-client libssl-dev pkg-config libpq-dev
112 - cargo test --workspace --no-fail-fast
115 # Using Debian here because there seems to be no official Alpine-based Rust docker image for ARM.
117 image: rust:1.50-slim-buster
120 - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev
122 - mv target/debug/lemmy_server target/lemmy_server
124 - name: run federation tests
125 image: node:15-buster-slim
127 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
128 DO_WRITE_HOSTS_FILE: 1
130 - mkdir -p /usr/share/man/man1 /usr/share/man/man7
132 - apt-get -y install --no-install-recommends bash curl libssl-dev pkg-config libpq-dev postgresql-client libc6-dev
133 - bash api_tests/prepare-drone-federation-test.sh
138 - name: make release build and push to docker hub
139 image: plugins/docker
141 dockerfile: docker/prod/Dockerfile.arm
143 from_secret: docker_username
145 from_secret: docker_password
146 repo: dessalines/lemmy
148 auto_tag_suffix: linux-arm64
153 - name: push to docker manifest
154 image: plugins/manifest
157 from_secret: docker_username
159 from_secret: docker_password
160 target: "dessalines/lemmy:${DRONE_TAG}"
161 template: "dessalines/lemmy:${DRONE_TAG}-OS-ARCH"
172 image: postgres:12-alpine
175 POSTGRES_PASSWORD: password