2021-11-07 20:44:48 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-02-24 19:48:23 +01:00
|
|
|
name: build-linux-amd64
|
2021-11-07 20:44:48 +01:00
|
|
|
|
2022-02-24 19:48:23 +01:00
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOPTIONS: -mod=vendor
|
|
|
|
SRCFILES: cmd/ipbl/*.go
|
|
|
|
PROJECTNAME: ipbl
|
2021-11-07 20:44:48 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: golang
|
2022-03-19 15:32:49 +01:00
|
|
|
environment:
|
|
|
|
VERSION: dev
|
2021-11-07 20:44:48 +01:00
|
|
|
commands:
|
2022-03-11 23:34:09 +01:00
|
|
|
- apt-get update -y
|
2022-03-11 23:35:24 +01:00
|
|
|
- apt-get install libczmq-dev -y
|
2022-02-24 19:50:05 +01:00
|
|
|
- go generate $SRCFILES
|
2022-02-24 19:48:23 +01:00
|
|
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|
2021-11-07 20:44:48 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-02-24 19:48:23 +01:00
|
|
|
name: gitea-release-linux-amd64
|
|
|
|
|
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOPTIONS: -mod=vendor
|
|
|
|
SRCFILES: cmd/ipbl/*.go
|
|
|
|
PROJECTNAME: ipbl
|
2021-11-07 20:44:48 +01:00
|
|
|
|
|
|
|
steps:
|
2022-02-24 19:48:23 +01:00
|
|
|
- name: build
|
|
|
|
image: golang
|
2021-11-07 20:44:48 +01:00
|
|
|
commands:
|
2022-03-19 15:32:49 +01:00
|
|
|
- export VERSION=$DRONE_TAG
|
2022-03-11 23:34:09 +01:00
|
|
|
- apt-get update -y
|
2022-03-11 23:35:24 +01:00
|
|
|
- apt-get install libczmq-dev -y
|
2022-02-24 19:50:05 +01:00
|
|
|
- go generate $SRCFILES
|
2022-02-24 19:48:23 +01:00
|
|
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
2022-02-24 19:53:12 +01:00
|
|
|
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
2022-02-24 19:48:23 +01:00
|
|
|
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
2021-11-07 20:44:48 +01:00
|
|
|
when:
|
2022-02-24 19:48:23 +01:00
|
|
|
event:
|
|
|
|
- tag
|
2021-11-07 20:44:48 +01:00
|
|
|
- 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:
|
2022-02-24 19:48:23 +01:00
|
|
|
event:
|
|
|
|
- tag
|
2023-01-21 09:37:27 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
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
|