From 04d0d60fb3ad00cfc00960b5600019c8a90cb309 Mon Sep 17 00:00:00 2001 From: shimun Date: Sun, 16 Aug 2020 14:13:24 +0200 Subject: [PATCH] use ubuntu as base image --- .drone.yml | 20 ++++++++++---------- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0c3e955..7e3a505 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,24 +5,24 @@ steps: - name: fmt image: rust:1.43.0 commands: - - rustup component add rustfmt - - cargo fmt --all -- --check + - rustup component add rustfmt + - cargo fmt --all -- --check - name: test - image: rust:1.43.0 + image: ubuntu:focal + environment: + DEBIAN_FRONTEND: noninteractive commands: - - apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config - - echo 'deb http://http.us.debian.org/debian unstable main non-free contrib' >> /etc/apt/sources.list.d/unstable.list && apt update && apt install -y libcryptsetup-dev - - cargo test - + - apt update && apt install -y cargo libkeyutils-dev libclang-dev clang pkg-config libcryptsetup-dev + - cargo test --locked - name: publish - image: rust:1.43.0 + image: ubuntu:focal environment: + DEBIAN_FRONTEND: noninteractive CARGO_REGISTRY_TOKEN: from_secret: cargo_tkn commands: - grep -E 'version ?= ?"${DRONE_TAG}"' -i Cargo.toml || (printf "incorrect crate/tag version" && exit 1) - - apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config - - echo 'deb http://http.us.debian.org/debian unstable main non-free contrib' >> /etc/apt/sources.list.d/unstable.list && apt update && apt install -y libcryptsetup-dev + - apt update && apt install -y cargo libkeyutils-dev libclang-dev clang pkg-config libcryptsetup-dev - cargo package --all-features - cargo publish --all-features when: diff --git a/Cargo.lock b/Cargo.lock index 6f8b6db..7543a9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -377,7 +377,7 @@ dependencies = [ [[package]] name = "fido2luks" -version = "0.2.10" +version = "0.2.11" dependencies = [ "ctap_hmac", "failure", diff --git a/Cargo.toml b/Cargo.toml index aebb89d..b00d2a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fido2luks" -version = "0.2.10" +version = "0.2.11" authors = ["shimunn "] edition = "2018"