This commit is contained in:
parent
53f78abaf3
commit
8439926037
68
.drone.yml
68
.drone.yml
@ -65,3 +65,71 @@ steps:
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-linux-arm64
|
||||
|
||||
environment:
|
||||
GOOS: linux
|
||||
GOARCH: arm64
|
||||
GOOPTIONS: -mod=vendor
|
||||
SRCFILES: cmd/ipbl/*.go
|
||||
PROJECTNAME: ipbl
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang
|
||||
environment:
|
||||
VERSION: dev
|
||||
commands:
|
||||
- apt-get update -y
|
||||
- apt-get install libczmq-dev -y
|
||||
- go generate $SRCFILES
|
||||
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: gitea-release-linux-arm64
|
||||
|
||||
environment:
|
||||
GOOS: linux
|
||||
GOARCH: arm64
|
||||
GOOPTIONS: -mod=vendor
|
||||
SRCFILES: cmd/ipbl/*.go
|
||||
PROJECTNAME: ipbl
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- export VERSION=$DRONE_TAG
|
||||
- apt-get update -y
|
||||
- apt-get install libczmq-dev -y
|
||||
- go generate $SRCFILES
|
||||
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
||||
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
||||
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
- name: release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://git.paulbsd.com
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
files: "*.tar.gz"
|
||||
checksum:
|
||||
- sha256
|
||||
- sha512
|
||||
title: VERSION
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
Loading…
Reference in New Issue
Block a user