Fix build and packaging
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
b79d1de9bc
commit
27fafa8b80
10
.drone.yml
10
.drone.yml
|
@ -6,25 +6,25 @@ steps:
|
|||
image: golang:latest
|
||||
group: build
|
||||
commands:
|
||||
- mkdir -p build/i386
|
||||
- mkdir -p /build/i386
|
||||
- GOOS=linux GOARCH=386 go build -o /build/i386/deb-simple
|
||||
- name: build-amd64
|
||||
image: golang:latest
|
||||
group: build
|
||||
commands:
|
||||
- mkdir -p build/amd64
|
||||
- go build -o build/amd64/deb-simple
|
||||
- mkdir -p /build/amd64
|
||||
- go build -o /build/amd64/deb-simple
|
||||
- name: build-armv7
|
||||
image: golang:latest
|
||||
group: build
|
||||
commands:
|
||||
- mkdir -p build/armv7
|
||||
- mkdir -p /build/armv7
|
||||
- GOOS=linux GOARCH=arm GOARM=7 go build -o /build/armv7/deb-simple
|
||||
- name: build-arm64
|
||||
image: golang:latest
|
||||
group: build
|
||||
commands:
|
||||
- mkdir -p build/arm64
|
||||
- mkdir -p /build/arm64
|
||||
- GOOS=linux GOARCH=arm64 go build -o /build/arm64/deb-simple
|
||||
- name: package
|
||||
image: tystuyfzand/fpm
|
||||
|
|
|
@ -6,6 +6,6 @@ fpm -s dir -t deb -p /build/$ARCH/deb-simple_$VERSION_$ARCH.deb \
|
|||
--description "Dead Simple Package Manager" \
|
||||
-m "Tyler Stuyfzand <admin@meow.tf>" --vendor "Meow.tf" \
|
||||
--before-install packaging/scripts/preinst.deb \
|
||||
-a $ARCH build/$ARCH/deb-simple=/usr/bin/deb-simple \
|
||||
-a $ARCH /build/$ARCH/deb-simple=/usr/bin/deb-simple \
|
||||
packaging/deb-simple.service=/lib/systemd/system/deb-simple.service \
|
||||
sample_conf.ini=/etc/deb-simple.conf
|
||||
|
|
Loading…
Reference in New Issue