Create releases on tags
This commit is contained in:
parent
2cea489bd2
commit
0af0d5a1ed
40
.drone.yml
40
.drone.yml
@ -1,29 +1,25 @@
|
|||||||
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: Release kubers
|
name: Release kubers
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
ref:
|
||||||
- main
|
- refs/tags/*
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: prepare build
|
- name: prepare build
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- apk update && apk add bash
|
- apk update && apk add bash
|
||||||
- mkdir dist
|
- mkdir dist
|
||||||
- cp ./kubers ./dist
|
- cp ./kubers ./dist
|
||||||
- cp ./completions/_kubers ./dist
|
- cp ./completions/_kubers ./dist
|
||||||
- ./kubers --version > version.txt
|
|
||||||
|
|
||||||
- name: gitea release
|
- name: gitea release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: GITEA_SECRET
|
from_secret: GITEA_SECRET
|
||||||
base_url: https://git.badhouseplants.net
|
base_url: https://git.badhouseplants.net
|
||||||
files: dist/*
|
files: dist/*
|
||||||
checksum: sha512
|
checksum: sha512
|
||||||
title: ./version.txt
|
|
||||||
|
Loading…
Reference in New Issue
Block a user