Add a drone pipeline to release

This commit is contained in:
Nikolai Rodionov 2023-06-01 19:56:30 +02:00
parent 77a4adf0e5
commit 8b62a744e3
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
2 changed files with 29 additions and 1 deletions

28
.drone.yml Normal file
View File

@ -0,0 +1,28 @@
kind: pipeline
name: Release kubers
type: docker
trigger:
branch:
- main
event:
- push
steps:
- name: prepare build
image: alpine
commands:
- mkdir dist
- cp ./kubers ./dist
- cp ./completions/_kubers ./dist
- ./kubers --version > version.txt
- name: gitea release
image: plugins/gitea-release
settings:
api_key:
from_secret: GITEA_SECRET
base_url: https://git.badhouseplants.net
files: dist/*
checksum: sha512
title: ./version.txt

2
kubers
View File

@ -61,7 +61,7 @@ while [[ $# -gt 0 ]]; do
shift shift
;; ;;
-V|--version) -V|--version)
printf "Kubers version is $KUBERS_VERSION\n" printf "$KUBERS_VERSION\n"
exit 0 exit 0
;; ;;
-h|--help) -h|--help)