7 image: ekidd/rust-musl-builder:1.47.0
10 - chown 1000:1000 . -R
12 - name: check formatting
13 image: rustdocker/rust:nightly
15 - /root/.cargo/bin/cargo fmt -- --check
18 image: ekidd/rust-musl-builder:1.47.0
20 - cargo clippy --workspace --all-targets --all-features -- -D warnings
22 - name: check documentation build
23 image: ekidd/rust-musl-builder:1.47.0
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 - ls -la target/lemmy_server
51 - apk add bash curl postgresql-client
52 - bash api_tests/prepare-drone-federation-test.sh
57 - name: create docker tags
58 image: ekidd/rust-musl-builder:1.47.0
60 - echo "$(git describe),latest" > .tags
65 - name: make release build and push to docker hub
68 dockerfile: docker/prod/Dockerfile
70 from_secret: docker_username
72 from_secret: docker_password
73 repo: dessalines/lemmy
80 image: postgres:12-alpine
83 POSTGRES_PASSWORD: password