2020-04-06 23:31:26 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2020-04-07 23:03:53 +02:00
|
|
|
type: docker
|
2022-10-30 15:02:20 +01:00
|
|
|
name: build-linux
|
2020-12-05 17:44:23 +01:00
|
|
|
|
|
|
|
steps:
|
2022-10-30 15:02:20 +01:00
|
|
|
- name: build-linux-amd64
|
2020-04-08 01:36:52 +02:00
|
|
|
image: golang
|
|
|
|
commands:
|
2022-03-26 12:11:52 +01:00
|
|
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
2022-10-30 15:02:20 +01:00
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOPTIONS: -mod=vendor
|
|
|
|
SRCFILES: cmd/qrz/*.go
|
|
|
|
PROJECTNAME: qrz
|
2022-03-26 12:11:52 +01:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|
2022-10-30 15:02:20 +01:00
|
|
|
- name: build-linux-arm64
|
2022-10-30 14:50:22 +01:00
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
2022-10-30 15:02:20 +01:00
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: arm64
|
|
|
|
GOOPTIONS: -mod=vendor
|
|
|
|
SRCFILES: cmd/qrz/*.go
|
|
|
|
PROJECTNAME: qrz
|
2022-10-30 14:50:22 +01:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|
|
|
|
|
2020-12-05 17:44:23 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-10-30 15:02:20 +01:00
|
|
|
name: gitea-release-linux
|
2022-10-30 14:50:22 +01:00
|
|
|
|
|
|
|
steps:
|
2022-10-30 15:02:20 +01:00
|
|
|
- name: build-linux-amd64
|
2022-10-30 14:50:22 +01:00
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
|
|
|
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
|
|
|
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
2022-10-30 15:02:20 +01:00
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
2022-10-30 15:19:19 +01:00
|
|
|
GOOPTIONS: -mod=vendor
|
2022-10-30 15:02:20 +01:00
|
|
|
SRCFILES: cmd/qrz/*.go
|
|
|
|
PROJECTNAME: qrz
|
2022-10-30 14:50:22 +01:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
2022-10-30 15:02:20 +01:00
|
|
|
- name: build-linux-arm64
|
2022-03-26 12:11:52 +01:00
|
|
|
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
|
2022-10-30 15:02:20 +01:00
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: arm64
|
2022-10-30 15:09:12 +01:00
|
|
|
GOOPTIONS: -mod=vendor
|
2022-10-30 15:02:20 +01:00
|
|
|
SRCFILES: cmd/qrz/*.go
|
|
|
|
PROJECTNAME: qrz
|
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-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
|