vaultwarden/.drone.yml

39 lines
1.1 KiB
YAML
Raw Normal View History

2020-01-16 22:36:08 +01:00
---
kind: pipeline
name: linux-amd64
platform:
os: linux
arch: amd64
steps:
- name: binary
image: clux/muslrust:nightly-2019-12-19
commands:
- "[ -z \"${DRONE_TAG}\" ] && BITWARDEN_VERSION=master || BITWARDEN_VERSION=${DRONE_TAG%-*}"
2020-01-16 23:01:17 +01:00
- mkdir -p source/
2020-01-16 23:25:40 +01:00
- "apt-get -qq update && apt-get install -yqq --no-install-recommends libpq-dev "
2020-01-16 23:01:17 +01:00
- rustup set profile minimal
2020-01-16 23:25:40 +01:00
- curl -sSL https://github.com/dani-garcia/bitwarden_rs/archive/$BITWARDEN_VERSION.tar.gz | tar xz -C source/ --strip-components=1
2020-01-16 23:01:17 +01:00
- ls -lah source && id
- cargo new --bin app/ && cd app/
- cp ../source/Cargo.* .
- cp ../source/rust-toolchain .
- cp ../source/build.rs .
- rustup target add x86_64-unknown-linux-musl
2020-01-16 23:25:40 +01:00
- cargo build -j 8 --features $DB --release
2020-01-16 23:01:17 +01:00
- find . -not -path "./target*" -delete
2020-01-16 22:36:08 +01:00
- ls -lah
2020-01-16 23:01:17 +01:00
- cp -rT ../source .
- ls -lah
2020-01-16 23:25:40 +01:00
- touch src/main.rs
- cargo build -j 8 --features $DB --release
- ./target/x86_64-unknown-linux-musl/release/bitwarden_rs --help
2020-01-16 23:01:17 +01:00
environment:
DB: postgresql
DEBIAN_FRONTEND: noninteractive
LANG: C.UTF-8
TZ: UTC
2020-01-16 22:36:08 +01:00
...