qrz/.drone.yml

110 lines
2.1 KiB
YAML
Raw Permalink Normal View History

2020-04-06 23:31:26 +02:00
---
kind: pipeline
2020-04-07 23:03:53 +02:00
type: docker
2024-09-03 20:33:39 +02:00
name: build-linux-amd64
platform:
os: linux
arch: amd64
2020-12-05 17:44:23 +01:00
steps:
2024-09-03 20:33:39 +02:00
- name: build
2024-10-16 13:21:56 +02:00
image: golang:1.23
2020-04-08 01:36:52 +02:00
commands:
2022-03-26 12:11:52 +01:00
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
2022-10-30 15:02:20 +01:00
environment:
2024-09-03 20:09:09 +02:00
CGO_ENABLED: 1
2022-10-30 15:02:20 +01:00
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
2024-09-03 20:33:39 +02:00
- name: release
2024-10-16 13:21:56 +02:00
image: golang:1.23
2022-10-30 14:50:22 +01:00
commands:
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
2024-09-03 20:33:39 +02:00
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
- echo $PROJECTNAME $DRONE_TAG > VERSION
2022-10-30 15:02:20 +01:00
environment:
2024-09-03 20:09:09 +02:00
CGO_ENABLED: 1
2022-10-30 15:02:20 +01:00
GOOS: linux
2024-09-03 20:33:39 +02:00
GOARCH: amd64
2022-10-30 15:02:20 +01:00
GOOPTIONS: -mod=vendor
SRCFILES: cmd/qrz/*.go
PROJECTNAME: qrz
2022-10-30 14:50:22 +01:00
when:
event:
2024-09-03 20:33:39 +02:00
- tag
- name: publish
image: plugins/gitea-release
settings:
base_url: https://git.paulbsd.com
api_key:
from_secret: gitea_token
files: "*.tar.gz"
title: VERSION
when:
event:
- tag
2022-10-30 14:50:22 +01:00
2020-12-05 17:44:23 +01:00
---
kind: pipeline
type: docker
2024-09-03 20:33:39 +02:00
name: build-linux-arm64
platform:
os: linux
arch: arm64
2022-10-30 14:50:22 +01:00
steps:
2024-09-03 20:33:39 +02:00
- name: build
2024-10-16 13:21:56 +02:00
image: golang:1.23
2022-10-30 14:50:22 +01:00
commands:
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
2022-10-30 15:02:20 +01:00
environment:
2024-09-03 20:09:09 +02:00
CGO_ENABLED: 1
2022-10-30 15:02:20 +01:00
GOOS: linux
2024-09-03 20:33:39 +02:00
GOARCH: arm64
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:
2024-09-03 20:33:39 +02:00
exclude:
- tag
- name: release
2024-10-16 13:21:56 +02:00
image: golang:1.23
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:
2024-09-03 20:09:09 +02:00
CGO_ENABLED: 1
2022-10-30 15:02:20 +01:00
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
2024-09-03 20:33:39 +02:00
- name: publish
2020-04-08 01:36:52 +02:00
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