2021-11-06 03:41:36 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: golang:1.17.2
|
|
|
|
commands:
|
|
|
|
- git tag $DRONE_TAG
|
2021-11-06 03:55:12 +00:00
|
|
|
- bash build.sh
|
2021-11-06 03:41:36 +00:00
|
|
|
- echo -n "latest,${DRONE_TAG#v}" > .tags
|
|
|
|
- name: gitea_release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_api_key
|
|
|
|
base_url: https://kumoly.io
|
|
|
|
files: dist/*
|
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: hub_user
|
|
|
|
password:
|
|
|
|
from_secret: hub_passwd
|
|
|
|
# auto_tag: true
|
|
|
|
mtu: 1000
|
|
|
|
# purge: true
|
2021-11-06 03:55:12 +00:00
|
|
|
repo: hub.kumoly.io/tools/breacher
|
2021-11-06 03:41:36 +00:00
|
|
|
registry: hub.kumoly.io
|
|
|
|
trigger:
|
|
|
|
event: tag
|