support multiple credentials
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
2020-04-01 13:14:08 +02:00
parent 42a5a92e4b
commit 725c5f0f2b
5 changed files with 1099 additions and 59 deletions

36
.drone.yml Normal file
View File

@@ -0,0 +1,36 @@
kind: pipeline
name: default
steps:
- name: test
image: rust:1.41.0
commands:
- apt update && apt install -y libpam-dev
- cargo test --release
- name: build_relase
image: rust:1.41.0
commands:
- apt update && apt install -y libpam-dev
- cargo build --release
- mkdir -p bin lib
- bash -c 'cp $${CARGO_TARGET_DIR:-target}/release/fido2-pam-credential bin/; cp $${CARGO_TARGET_DIR:-target}/release/libpam_fido2.so lib/'
- strip bin/*
- tar cvzf pam_fido2.tar.gz bin lib src Cargo.*
when:
event:
- tag
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_tkn
base_url:
from_secret: gitea_url
files:
- pam_fido2.tar.gz
checksum:
- md5
- sha512
when:
event:
- tag