10 - name: fetch git submodules
11 image: node:15-alpine3.12
14 - git submodule update --init --recursive --remote
17 image: ekidd/rust-musl-builder:1.47.0
20 - chown 1000:1000 . -R
22 - name: check formatting
23 image: rustdocker/rust:nightly
25 - /root/.cargo/bin/cargo fmt -- --check
28 image: ekidd/rust-musl-builder:1.47.0
30 - cargo clippy --workspace --tests --all-targets --all-features -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
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 - apk add bash curl postgresql-client
56 - bash api_tests/prepare-drone-federation-test.sh
61 - name: make release build and push to docker hub
64 dockerfile: docker/prod/Dockerfile
66 from_secret: docker_username
68 from_secret: docker_password
69 repo: dessalines/lemmy
77 image: postgres:12-alpine
80 POSTGRES_PASSWORD: password
92 - name: fetch git submodules
93 image: node:15-alpine3.12
96 - git submodule update --init --recursive --remote
99 image: rust:1.47-slim-buster
101 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
106 - apt-get -y install --no-install-recommends espeak postgresql-client libssl-dev pkg-config libpq-dev
107 - cargo test --workspace --no-fail-fast
110 # Using Debian here because there seems to be no official Alpine-based Rust docker image for ARM.
112 image: rust:1.47-slim-buster
115 - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev
117 - mv target/debug/lemmy_server target/lemmy_server
119 - name: run federation tests
120 image: node:15-buster-slim
122 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
123 DO_WRITE_HOSTS_FILE: 1
125 - mkdir -p /usr/share/man/man1 /usr/share/man/man7
127 - apt-get -y install --no-install-recommends bash curl libssl-dev pkg-config libpq-dev postgresql-client libc6-dev
128 - bash api_tests/prepare-drone-federation-test.sh
133 - name: make release build and push to docker hub
134 image: plugins/docker
136 dockerfile: docker/prod/Dockerfile.arm
138 from_secret: docker_username
140 from_secret: docker_password
141 repo: dessalines/lemmy
143 auto_tag_suffix: arm64
150 image: postgres:12-alpine
153 POSTGRES_PASSWORD: password