Update drone.yml
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
9b5d1971ad
commit
b79d1de9bc
22
.drone.yml
22
.drone.yml
|
@ -2,31 +2,31 @@ kind: pipeline
|
|||
name: default
|
||||
|
||||
steps:
|
||||
build-i386:
|
||||
- name: build-i386
|
||||
image: golang:latest
|
||||
group: build
|
||||
commands:
|
||||
- mkdir -p build/i386
|
||||
- GOOS=linux GOARCH=386 go build -o /build/i386/deb-simple
|
||||
build-amd64:
|
||||
- name: build-amd64
|
||||
image: golang:latest
|
||||
group: build
|
||||
commands:
|
||||
- mkdir -p build/amd64
|
||||
- go build -o build/amd64/deb-simple
|
||||
build-armv7:
|
||||
- name: build-armv7
|
||||
image: golang:latest
|
||||
group: build
|
||||
commands:
|
||||
- mkdir -p build/armv7
|
||||
- GOOS=linux GOARCH=arm GOARM=7 go build -o /build/armv7/deb-simple
|
||||
build-arm64:
|
||||
- name: build-arm64
|
||||
image: golang:latest
|
||||
group: build
|
||||
commands:
|
||||
- mkdir -p build/arm64
|
||||
- GOOS=linux GOARCH=arm64 go build -o /build/arm64/deb-simple
|
||||
package:
|
||||
- name: package
|
||||
image: tystuyfzand/fpm
|
||||
commands:
|
||||
- export VERSION=`grep "VERSION" server.go | head -n 1 | awk '{print $4}' | sed -e 's/^"//' -e 's/"$//' | tr -d '\n'`
|
||||
|
@ -35,7 +35,17 @@ steps:
|
|||
- ARCH=amd64 packaging/build-package.sh
|
||||
- ARCH=armv7 packaging/build-package.sh
|
||||
- ARCH=arm64 packaging/build-package.sh
|
||||
secrets: [ upload_url ]
|
||||
- name: repo
|
||||
image: tystuyfzand/drone-deb-simple
|
||||
volumes:
|
||||
- name: build
|
||||
path: /build
|
||||
settings:
|
||||
url:
|
||||
from_secret: upload_url
|
||||
key:
|
||||
from_secret: upload_key
|
||||
files: [ '/build/*/deb-simple_*.deb' ]
|
||||
|
||||
volumes:
|
||||
- name: build
|
||||
|
|
Loading…
Reference in New Issue