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
68 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
69 DO_WRITE_HOSTS_FILE: 1
71 - ls -la target/lemmy_server
72 # - apk add bash curl postgresql-client
73 - apt-get update && apt-get install -y postgresql postgresql-contrib
74 - bash api_tests/prepare-drone-federation-test.sh
79 - name: create docker tags
80 image: ekidd/rust-musl-builder:1.47.0
82 - echo "$(git describe),latest" > .tags
87 - name: make release build and push to docker hub
90 dockerfile: docker/prod/Dockerfile
92 from_secret: docker_username
94 from_secret: docker_password
95 repo: dessalines/lemmy
102 image: postgres:12-alpine
105 POSTGRES_PASSWORD: password