Combine build steps and add volume to package
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7e7445742d
commit
c5b11e7fc8
35
.drone.yml
35
.drone.yml
@ -2,42 +2,18 @@ kind: pipeline
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-i386
|
- name: build
|
||||||
image: golang:latest
|
image: golang:latest
|
||||||
group: build
|
group: build
|
||||||
volumes:
|
volumes:
|
||||||
- name: build
|
- name: build
|
||||||
path: /build
|
path: /build
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p /build/i386
|
- mkdir -p /build/i386 /build/amd64 /build/armv7 /build/arm64
|
||||||
- GOOS=linux GOARCH=386 go build -o /build/i386/owapi
|
- GOOS=linux GOARCH=386 go build -o /build/i386/owapi
|
||||||
- name: build-amd64
|
|
||||||
image: golang:latest
|
|
||||||
group: build
|
|
||||||
volumes:
|
|
||||||
- name: build
|
|
||||||
path: /build
|
|
||||||
commands:
|
|
||||||
- mkdir -p /build/amd64
|
|
||||||
- go build -o /build/amd64/owapi
|
- go build -o /build/amd64/owapi
|
||||||
- name: build-armv7
|
- GOOS=linux GOARCH=arm GOARM=7 go build -o /build/armv7/owapi
|
||||||
image: golang:latest
|
- GOOS=linux GOARCH=arm64 go build -o /build/arm64/owapi
|
||||||
group: build
|
|
||||||
volumes:
|
|
||||||
- name: build
|
|
||||||
path: /build
|
|
||||||
commands:
|
|
||||||
- mkdir -p /build/armv7
|
|
||||||
- GOOS=linux GOARCH=arm GOARM=7 go build -o /build/armv7/owapi
|
|
||||||
- name: build-arm64
|
|
||||||
image: golang:latest
|
|
||||||
group: build
|
|
||||||
volumes:
|
|
||||||
- name: build
|
|
||||||
path: /build
|
|
||||||
commands:
|
|
||||||
- mkdir -p /build/arm64
|
|
||||||
- GOOS=linux GOARCH=arm64 go build -o /build/arm64/owapi
|
|
||||||
- name: package
|
- name: package
|
||||||
image: tystuyfzand/fpm
|
image: tystuyfzand/fpm
|
||||||
commands:
|
commands:
|
||||||
@ -48,6 +24,9 @@ steps:
|
|||||||
- ARCH=armv7 packaging/build-package.sh
|
- ARCH=armv7 packaging/build-package.sh
|
||||||
- ARCH=arm64 packaging/build-package.sh
|
- ARCH=arm64 packaging/build-package.sh
|
||||||
- packaging/package-upload.sh
|
- packaging/package-upload.sh
|
||||||
|
volumes:
|
||||||
|
- name: build
|
||||||
|
path: /build
|
||||||
environment:
|
environment:
|
||||||
UPLOAD_URL:
|
UPLOAD_URL:
|
||||||
from_secret: upload_url
|
from_secret: upload_url
|
||||||
|
Loading…
Reference in New Issue
Block a user