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
22 image: ekidd/rust-musl-builder:1.47.0
24 - cargo check --workspace --all-targets
31 image: ekidd/rust-musl-builder:1.47.0
39 - name: check documentation build
40 image: ekidd/rust-musl-builder:1.47.0
45 image: ekidd/rust-musl-builder:1.47.0
47 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
52 - sudo apt-get -y install --no-install-recommends espeak postgresql-client
53 - cargo test --workspace --no-fail-fast
60 image: ekidd/rust-musl-builder:1.47.0
63 - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
65 - name: run federation tests
66 image: node:15-alpine3.12
68 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
70 - ls -la target/lemmy_server
71 - apk add bash curl postgresql-client
72 - bash api_tests/prepare-drone-federation-test.sh
77 - name: create docker tags
78 image: ekidd/rust-musl-builder:1.47.0
80 - echo "$(git describe),latest" > .tags
85 - name: make release build and push to docker hub
88 dockerfile: docker/prod/Dockerfile
90 from_secret: docker_username
92 from_secret: docker_password
93 repo: dessalines/lemmy
100 image: postgres:12-alpine
103 POSTGRES_PASSWORD: password