2021-11-27 12:49:39 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-10-30 16:05:32 +01:00
|
|
|
name: build-linux
|
2021-11-27 12:49:39 +01:00
|
|
|
|
|
|
|
steps:
|
2022-10-30 16:05:32 +01:00
|
|
|
- name: build-linux-amd64
|
2021-11-27 12:49:39 +01:00
|
|
|
image: golang
|
2022-03-25 11:59:29 +01:00
|
|
|
commands:
|
|
|
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
2022-10-30 16:05:32 +01:00
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOPTIONS: -mod=vendor
|
|
|
|
SRCFILES: cmd/go-aptproxy/*.go
|
|
|
|
PROJECTNAME: go-aptproxy
|
2022-03-25 11:59:29 +01:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|
2022-10-30 16:05:32 +01:00
|
|
|
- name: build-linux-arm64
|
2022-07-11 16:07:36 +02:00
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
2022-10-30 16:05:32 +01:00
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: arm64
|
|
|
|
GOOPTIONS: -mod=vendor
|
|
|
|
SRCFILES: cmd/go-aptproxy/*.go
|
|
|
|
PROJECTNAME: go-aptproxy
|
2022-07-11 16:07:36 +02:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-10-30 16:05:32 +01:00
|
|
|
name: gitea-release-linux
|
2022-07-11 16:07:36 +02:00
|
|
|
|
|
|
|
steps:
|
2022-10-30 16:05:32 +01:00
|
|
|
- name: build-linux-amd64
|
2022-07-11 16:07:36 +02:00
|
|
|
image: golang
|
|
|
|
commands:
|
2022-07-11 16:39:01 +02:00
|
|
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
2022-07-11 16:48:23 +02:00
|
|
|
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
|
|
|
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
2022-10-30 16:05:32 +01:00
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOPTIONS: -mod=vendor
|
|
|
|
SRCFILES: cmd/go-aptproxy/*.go
|
|
|
|
PROJECTNAME: go-aptproxy
|
2022-07-11 16:48:23 +02:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
2022-10-30 16:05:32 +01:00
|
|
|
- name: build-linux-arm64
|
2022-07-11 16:48:23 +02:00
|
|
|
image: golang
|
|
|
|
commands:
|
2022-07-11 16:07:36 +02:00
|
|
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
2022-07-11 16:48:23 +02:00
|
|
|
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
2022-07-11 16:07:36 +02:00
|
|
|
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
2022-10-30 16:05:32 +01:00
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: arm64
|
|
|
|
GOOPTIONS: -mod=vendor
|
|
|
|
SRCFILES: cmd/go-aptproxy/*.go
|
|
|
|
PROJECTNAME: go-aptproxy
|
2022-07-11 16:07:36 +02:00
|
|
|
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"
|
2022-07-11 16:43:38 +02:00
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
- sha512
|
2022-07-11 16:07:36 +02:00
|
|
|
title: VERSION
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|