updated .drone.yml
This commit is contained in:
parent
ea41b9f14f
commit
b102d2e916
83
.drone.yml
83
.drone.yml
@ -1,23 +1,33 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-linux-amd64
|
name: build-linux
|
||||||
|
|
||||||
environment:
|
steps:
|
||||||
|
- name: build-linux-amd64
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
||||||
|
environment:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
GOOPTIONS: -mod=vendor
|
GOOPTIONS: -mod=vendor
|
||||||
SRCFILES: cmd/go-aptproxy/*.go
|
SRCFILES: cmd/go-aptproxy/*.go
|
||||||
PROJECTNAME: go-aptproxy
|
PROJECTNAME: go-aptproxy
|
||||||
|
when:
|
||||||
steps:
|
event:
|
||||||
- name: build
|
exclude:
|
||||||
|
- tag
|
||||||
|
- name: build-linux-arm64
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
|
||||||
VERSION: dev
|
|
||||||
commands:
|
commands:
|
||||||
- go generate $SRCFILES
|
|
||||||
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
||||||
|
environment:
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: arm64
|
||||||
|
GOOPTIONS: -mod=vendor
|
||||||
|
SRCFILES: cmd/go-aptproxy/*.go
|
||||||
|
PROJECTNAME: go-aptproxy
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
@ -26,63 +36,36 @@ steps:
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-linux-arm64
|
name: gitea-release-linux
|
||||||
|
|
||||||
environment:
|
|
||||||
GOOS: linux
|
|
||||||
GOARCH: arm64
|
|
||||||
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:
|
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
||||||
event:
|
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
||||||
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
|
||||||
commands:
|
GOOPTIONS: -mod=vendor
|
||||||
- export VERSION=$DRONE_TAG
|
SRCFILES: cmd/go-aptproxy/*.go
|
||||||
- go generate $SRCFILES
|
PROJECTNAME: go-aptproxy
|
||||||
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
|
||||||
- tar -czvf $PROJECTNAME-$DRONE_TAG-$GOOS-$GOARCH.tar.gz $PROJECTNAME
|
|
||||||
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
|
||||||
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