fido2pam/.drone.yml
Shimun 70d66f6a74
Some checks failed
continuous-integration/drone/tag Build is failing
added debug flag
2020-04-04 15:26:49 +02:00

37 lines
814 B
YAML

kind: pipeline
name: default
steps:
- name: test
image: rust:1.41.0
commands:
- apt update && apt install -y libpam-dev
- cargo test --debug
- name: build_relase
image: rust:1.41.0
commands:
- apt update && apt install -y libpam-dev
- cargo build --debug
- mkdir -p bin lib
- bash -c 'cp $${CARGO_TARGET_DIR:-target}/debug/pam_fido2-cli bin/; cp $${CARGO_TARGET_DIR:-target}/debug/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