From 8b62a744e31c1d478669e6fc7d8c0f0e490ec824 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 1 Jun 2023 19:56:30 +0200 Subject: [PATCH] Add a drone pipeline to release --- .drone.yml | 28 ++++++++++++++++++++++++++++ kubers | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ced8775 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file diff --git a/kubers b/kubers index eadb472..f2821a5 100755 --- a/kubers +++ b/kubers @@ -61,7 +61,7 @@ while [[ $# -gt 0 ]]; do shift ;; -V|--version) - printf "Kubers version is $KUBERS_VERSION\n" + printf "$KUBERS_VERSION\n" exit 0 ;; -h|--help)