Add rpm and deb builds
This commit is contained in:
parent
68b03407e7
commit
92bd09a2c6
13
.drone.yml
13
.drone.yml
@ -21,6 +21,19 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
API_KEY:
|
API_KEY:
|
||||||
from_secret: api_key
|
from_secret: api_key
|
||||||
|
- name: package
|
||||||
|
image: tystuyfzand/fpm
|
||||||
|
commands:
|
||||||
|
- chmod +x scripts/build-package.sh
|
||||||
|
- ARCH=i386 scripts/build-package.sh
|
||||||
|
- ARCH=amd64 scripts/build-package.sh
|
||||||
|
- ARCH=armv7 scripts/build-package.sh
|
||||||
|
- ARCH=arm64 scripts/build-package.sh
|
||||||
|
volumes:
|
||||||
|
- name: build
|
||||||
|
path: /build
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
- name: release
|
- name: release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
volumes:
|
volumes:
|
||||||
|
13
scripts/build-package.sh
Normal file
13
scripts/build-package.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
fpm -s dir -t deb -p /build/pastee_${DRONE_TAG}_${ARCH}.deb \
|
||||||
|
-n ow-api -v $DRONE_TAG -a $ARCH \
|
||||||
|
--deb-priority optional --force \
|
||||||
|
--deb-compression bzip2 \
|
||||||
|
--description "Paste.ee CLI Tool" \
|
||||||
|
-m "Paste.ee <admin@paste.ee>" --vendor "Paste.ee" \
|
||||||
|
-a $ARCH /build/pastee_linux_${ARCH}=/usr/bin/pastee
|
||||||
|
|
||||||
|
fpm -s dir -t rpm -p /build/pastee_${DRONE_TAG}_${ARCH}.rpm \
|
||||||
|
-n ow-api -v $DRONE_TAG -a $ARCH \
|
||||||
|
--description "Paste.ee CLI Tool" \
|
||||||
|
-m "Paste.ee <admin@paste.ee>" --vendor "Paste.ee" \
|
||||||
|
-a $ARCH /build/pastee_linux_${ARCH}=/usr/bin/pastee
|
Loading…
Reference in New Issue
Block a user