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)