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 check --workspace --all-targets
23 image: ekidd/rust-musl-builder:1.47.0
27 - name: check documentation build
28 image: ekidd/rust-musl-builder:1.47.0
33 image: ekidd/rust-musl-builder:1.47.0
35 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
40 - sudo apt-get -y install --no-install-recommends espeak postgresql-client
41 - cargo test --workspace --no-fail-fast
44 image: ekidd/rust-musl-builder:1.47.0
47 - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
49 - name: run federation tests
50 image: node:15-alpine3.12
52 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
53 DO_WRITE_HOSTS_FILE: 1
55 - ls -la target/lemmy_server
56 - apk add bash curl postgresql-client
57 - bash api_tests/prepare-drone-federation-test.sh
62 - name: create docker tags
63 image: ekidd/rust-musl-builder:1.47.0
65 - echo "$(git describe),latest" > .tags
70 - name: make release build and push to docker hub
73 dockerfile: docker/prod/Dockerfile
75 from_secret: docker_username
77 from_secret: docker_password
78 repo: dessalines/lemmy
85 image: postgres:12-alpine
88 POSTGRES_PASSWORD: password