updated .drone.yml
This commit is contained in:
parent
ea41b9f14f
commit
b102d2e916
109
.drone.yml
109
.drone.yml
@ -1,88 +1,71 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-linux-amd64
|
name: build-linux
|
||||||
|
|
||||||
environment:
|
|
||||||
GOOS: linux
|
|
||||||
GOARCH: amd64
|
|
||||||
GOOPTIONS: -mod=vendor
|
|
||||||
SRCFILES: cmd/go-aptproxy/*.go
|
|
||||||
PROJECTNAME: go-aptproxy
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build-linux-amd64
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
|
||||||
VERSION: dev
|
|
||||||
commands:
|
commands:
|
||||||
- go generate $SRCFILES
|
|
||||||
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
||||||
when:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: build-linux-arm64
|
|
||||||
|
|
||||||
environment:
|
|
||||||
GOOS: linux
|
|
||||||
GOARCH: arm64
|
|
||||||
GOOPTIONS: -mod=vendor
|
|
||||||
SRCFILES: cmd/go-aptproxy/*.go
|
|
||||||
PROJECTNAME: go-aptproxy
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build
|
|
||||||
image: golang
|
|
||||||
environment:
|
|
||||||
VERSION: dev
|
|
||||||
commands:
|
|
||||||
- go generate $SRCFILES
|
|
||||||
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: gitea-release
|
|
||||||
|
|
||||||
environment:
|
|
||||||
GOOS: linux
|
|
||||||
GOOPTIONS: -mod=vendor
|
|
||||||
SRCFILES: cmd/go-aptproxy/*.go
|
|
||||||
PROJECTNAME: go-aptproxy
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build-amd64
|
|
||||||
image: golang
|
|
||||||
environment:
|
environment:
|
||||||
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
|
GOOPTIONS: -mod=vendor
|
||||||
|
SRCFILES: cmd/go-aptproxy/*.go
|
||||||
|
PROJECTNAME: go-aptproxy
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- tag
|
||||||
|
- name: build-linux-arm64
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
||||||
|
environment:
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: arm64
|
||||||
|
GOOPTIONS: -mod=vendor
|
||||||
|
SRCFILES: cmd/go-aptproxy/*.go
|
||||||
|
PROJECTNAME: go-aptproxy
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: gitea-release-linux
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-linux-amd64
|
||||||
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- export VERSION=$DRONE_TAG
|
|
||||||
- go generate $SRCFILES
|
|
||||||
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
||||||
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
||||||
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
||||||
|
environment:
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: amd64
|
||||||
|
GOOPTIONS: -mod=vendor
|
||||||
|
SRCFILES: cmd/go-aptproxy/*.go
|
||||||
|
PROJECTNAME: go-aptproxy
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
- name: build-arm64
|
- name: build-linux-arm64
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
|
||||||
GOARCH: arm64
|
|
||||||
commands:
|
commands:
|
||||||
- export VERSION=$DRONE_TAG
|
|
||||||
- go generate $SRCFILES
|
|
||||||
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
||||||
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
||||||
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
||||||
|
environment:
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: arm64
|
||||||
|
GOOPTIONS: -mod=vendor
|
||||||
|
SRCFILES: cmd/go-aptproxy/*.go
|
||||||
|
PROJECTNAME: go-aptproxy
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
Loading…
Reference in New Issue
Block a user