Fix build and packaging
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Tyler 2020-06-14 04:34:50 -04:00
parent b79d1de9bc
commit 27fafa8b80
2 changed files with 6 additions and 6 deletions

View File

@ -6,25 +6,25 @@ steps:
image: golang:latest image: golang:latest
group: build group: build
commands: commands:
- mkdir -p build/i386 - mkdir -p /build/i386
- GOOS=linux GOARCH=386 go build -o /build/i386/deb-simple - GOOS=linux GOARCH=386 go build -o /build/i386/deb-simple
- name: build-amd64 - name: build-amd64
image: golang:latest image: golang:latest
group: build group: build
commands: commands:
- mkdir -p build/amd64 - mkdir -p /build/amd64
- go build -o build/amd64/deb-simple - go build -o /build/amd64/deb-simple
- name: build-armv7 - name: build-armv7
image: golang:latest image: golang:latest
group: build group: build
commands: commands:
- mkdir -p build/armv7 - mkdir -p /build/armv7
- GOOS=linux GOARCH=arm GOARM=7 go build -o /build/armv7/deb-simple - GOOS=linux GOARCH=arm GOARM=7 go build -o /build/armv7/deb-simple
- name: build-arm64 - name: build-arm64
image: golang:latest image: golang:latest
group: build group: build
commands: commands:
- mkdir -p build/arm64 - mkdir -p /build/arm64
- GOOS=linux GOARCH=arm64 go build -o /build/arm64/deb-simple - GOOS=linux GOARCH=arm64 go build -o /build/arm64/deb-simple
- name: package - name: package
image: tystuyfzand/fpm image: tystuyfzand/fpm

View File

@ -6,6 +6,6 @@ fpm -s dir -t deb -p /build/$ARCH/deb-simple_$VERSION_$ARCH.deb \
--description "Dead Simple Package Manager" \ --description "Dead Simple Package Manager" \
-m "Tyler Stuyfzand <admin@meow.tf>" --vendor "Meow.tf" \ -m "Tyler Stuyfzand <admin@meow.tf>" --vendor "Meow.tf" \
--before-install packaging/scripts/preinst.deb \ --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 \ packaging/deb-simple.service=/lib/systemd/system/deb-simple.service \
sample_conf.ini=/etc/deb-simple.conf sample_conf.ini=/etc/deb-simple.conf