qrz/.drone.yml

59 lines
1.0 KiB
YAML
Raw Normal View History

2020-04-06 23:31:26 +02:00
---
kind: pipeline
2020-04-07 23:03:53 +02:00
type: docker
2022-03-26 12:11:52 +01:00
name: build-linux-amd64
2020-04-07 23:03:53 +02:00
2022-03-26 12:11:52 +01:00
environment:
GOOS: linux
GOARCH: amd64
GOOPTIONS: -mod=vendor
SRCFILES: cmd/qrz/*.go
PROJECTNAME: qrz
2020-12-05 17:44:23 +01:00
steps:
2020-04-08 01:36:52 +02:00
- name: build
image: golang
commands:
2022-03-26 12:11:52 +01:00
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
when:
event:
exclude:
- tag
2020-12-05 17:44:23 +01:00
---
kind: pipeline
type: docker
2022-03-26 12:11:52 +01:00
name: gitea-release-linux-amd64
environment:
GOOS: linux
GOARCH: amd64
GOOPTIONS: -mod=vendor
SRCFILES: cmd/qrz/*.go
PROJECTNAME: qrz
2020-12-05 17:44:23 +01:00
steps:
2022-03-26 12:11:52 +01:00
- name: build
image: golang
2020-12-05 17:44:23 +01:00
commands:
2022-03-26 12:11:52 +01:00
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
- echo $PROJECTNAME $DRONE_TAG > VERSION
2020-12-05 17:44:23 +01:00
when:
2022-03-26 12:11:52 +01:00
event:
- tag
2020-04-08 01:36:52 +02:00
- name: release
image: plugins/gitea-release
settings:
base_url: https://git.paulbsd.com
api_key:
from_secret: gitea_token
2020-04-12 16:35:17 +02:00
files: "*.tar.gz"
2020-04-12 15:25:09 +02:00
checksum:
- sha256
- sha512
2020-12-05 17:44:23 +01:00
title: VERSION
2020-04-08 01:36:52 +02:00
when:
2022-03-26 12:11:52 +01:00
event:
- tag