1
1
mirror of https://schlomp.space/tastytea/hashboot synced 2024-11-07 15:19:17 +01:00
hashboot/.drone.yml

120 lines
2.6 KiB
YAML
Raw Normal View History

2019-06-20 16:46:41 +02:00
kind: pipeline
name: check
2019-06-20 16:46:41 +02:00
volumes:
- name: debian-package-cache
host:
path: /var/cache/debian-package-cache
2019-06-20 16:46:41 +02:00
trigger:
event:
exclude:
- tag
2019-06-20 16:49:02 +02:00
steps:
2019-06-20 16:46:41 +02:00
- name: shellcheck
image: debian:stretch-slim
pull: always
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- rm /var/cache/apt/archives/lock
2019-06-20 20:54:52 +02:00
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
- echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
2019-06-20 16:46:41 +02:00
- apt-get update -q
2019-06-20 20:54:52 +02:00
- apt-get install -qy -t buster shellcheck
- shellcheck hashboot
2019-06-20 16:46:41 +02:00
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
2019-06-20 16:46:41 +02:00
- name: notify
image: drillster/drone-email
pull: always
settings:
host: cryptoparty-celle.de
from: drone@tzend.de
username:
from_secret: email_username
password:
from_secret: email_password
when:
status: [ changed, failure ]
2019-06-20 16:46:41 +02:00
---
kind: pipeline
name: release
volumes:
- name: debian-package-cache
host:
path: /var/cache/debian-package-cache
- name: gpg-key
host:
path: /home/tastytea/misc/autosign_gpg.key
trigger:
event:
- tag
2019-06-20 16:49:02 +02:00
steps:
- name: download tar.gz
image: plugins/download
settings:
2019-06-20 16:54:35 +02:00
source: https://schlomp.space/tastytea/hashboot/archive/${DRONE_TAG}.tar.gz
2019-06-20 17:14:47 +02:00
destination: hashboot-${DRONE_TAG}.tar.gz
- name: download zip
image: plugins/download
settings:
2019-06-20 16:54:35 +02:00
source: https://schlomp.space/tastytea/hashboot/archive/${DRONE_TAG}.zip
2019-06-20 17:14:47 +02:00
destination: hashboot-${DRONE_TAG}.zip
- name: signature
image: debian:stretch-slim
pull: always
commands:
- rm /etc/apt/apt.conf.d/docker-clean
2019-06-20 17:00:37 +02:00
- rm -f /var/cache/apt/archives/lock
- apt-get update -q
- apt-get install -qy gnupg
- gpg --import /var/autosign_gpg.key
- gpg --verbose --detach-sign *.tar.gz
- gpg --verbose --detach-sign *.zip
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
- name: gpg-key
path: /var/autosign_gpg.key
- name: release
image: plugins/gitea-release
pull: always
settings:
base_url: https://schlomp.space
api_key:
from_secret: gitea_token
title: ${DRONE_TAG}
prerelease: true
files:
2019-06-20 17:31:13 +02:00
- hashboot-${DRONE_TAG}.tar.gz
- hashboot-${DRONE_TAG}.tar.gz.sig
2019-06-20 17:31:13 +02:00
- hashboot-${DRONE_TAG}.zip
- hashboot-${DRONE_TAG}.zip.sig
checksum:
- sha256
- sha512
- name: notify
image: drillster/drone-email
pull: always
settings:
host: cryptoparty-celle.de
from: drone@tzend.de
username:
from_secret: email_username
password:
from_secret: email_password
when:
status: [ changed, failure ]