support multiple credentials
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This commit is contained in:
36
.drone.yml
Normal file
36
.drone.yml
Normal 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
|
||||
Reference in New Issue
Block a user