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
|
||||
name: Release kubers
|
||||
type: docker
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
|
||||
ref:
|
||||
- refs/tags/*
|
||||
steps:
|
||||
- name: prepare build
|
||||
image: alpine
|
||||
commands:
|
||||
- apk update && apk add bash
|
||||
- mkdir dist
|
||||
- cp ./kubers ./dist
|
||||
- cp ./completions/_kubers ./dist
|
||||
- ./kubers --version > version.txt
|
||||
- name: prepare build
|
||||
image: alpine
|
||||
commands:
|
||||
- apk update && apk add bash
|
||||
- mkdir dist
|
||||
- cp ./kubers ./dist
|
||||
- cp ./completions/_kubers ./dist
|
||||
|
||||
- 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
|
||||
- name: gitea release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: GITEA_SECRET
|
||||
base_url: https://git.badhouseplants.net
|
||||
files: dist/*
|
||||
checksum: sha512
|
||||
|
Loading…
Reference in New Issue
Block a user