Combine build steps and add volume to package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler 2019-05-25 15:08:31 -04:00
parent 7e7445742d
commit c5b11e7fc8

View File

@ -2,42 +2,18 @@ kind: pipeline
name: default
steps:
- name: build-i386
- name: build
image: golang:latest
group: build
volumes:
- name: build
path: /build
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
- name: build-amd64
image: golang:latest
group: build
volumes:
- name: build
path: /build
commands:
- mkdir -p /build/amd64
- go build -o /build/amd64/owapi
- name: build-armv7
image: golang:latest
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
- GOOS=linux GOARCH=arm GOARM=7 go build -o /build/armv7/owapi
- GOOS=linux GOARCH=arm64 go build -o /build/arm64/owapi
- name: package
image: tystuyfzand/fpm
commands:
@ -48,6 +24,9 @@ steps:
- ARCH=armv7 packaging/build-package.sh
- ARCH=arm64 packaging/build-package.sh
- packaging/package-upload.sh
volumes:
- name: build
path: /build
environment:
UPLOAD_URL:
from_secret: upload_url