chore: Update Drone CI configuration for deb package uploads
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
744ef5daf1
commit
a3add50d42
2 changed files with 26 additions and 17 deletions
34
.drone.yml
34
.drone.yml
|
@ -69,12 +69,13 @@ steps:
|
|||
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
||||
--upload-file "/_cache/bin/$PACKAGE_BASENAME" \
|
||||
"$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME"
|
||||
# - |
|
||||
# for deb in /_cache/bin/*.deb; do
|
||||
# curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
||||
# --upload-file "$deb" \
|
||||
# "$PACKAGE_UPLOAD_URL/$DRONE_TAG/$(basename $deb)"
|
||||
# done
|
||||
- |
|
||||
for deb in /_cache/bin/*.deb 0 ; do \
|
||||
test -f "$deb" || continue ; \
|
||||
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
||||
--upload-file "$deb" \
|
||||
"$PACKAGE_UPLOAD_URL/$DRONE_TAG/$(basename $deb)" ; \
|
||||
done
|
||||
- |
|
||||
set -x
|
||||
curl -X POST \
|
||||
|
@ -100,16 +101,17 @@ steps:
|
|||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=@/_cache/bin/$PACKAGE_BASENAME" \
|
||||
"$RELEASES_URL/$TAG_ID/assets?name=$PACKAGE_BASENAME"
|
||||
# - |
|
||||
# set -x
|
||||
# for deb in /_cache/bin/*.deb; do
|
||||
# curl -X POST \
|
||||
# -H "Authorization: token $RELEASE_UPLOAD_TOKEN" \
|
||||
# -H "accept: application/json" \
|
||||
# -H "Content-Type: multipart/form-data" \
|
||||
# -F "attachment=@$deb" \
|
||||
# "$RELEASES_URL/$TAG_ID/assets?name=$(basename $deb)"
|
||||
# done
|
||||
- |
|
||||
set -x
|
||||
for deb in /_cache/bin/*.deb 0 ; do \
|
||||
test -f "$deb" || continue ; \
|
||||
curl -X POST \
|
||||
-H "Authorization: token $RELEASE_UPLOAD_TOKEN" \
|
||||
-H "accept: application/json" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=@$deb" \
|
||||
"$RELEASES_URL/$TAG_ID/assets?name=$(basename $deb)" ; \
|
||||
done
|
||||
|
||||
|
||||
# FIXME: handle multi-arch
|
||||
|
|
9
Makefile
9
Makefile
|
@ -6,11 +6,14 @@
|
|||
DESTDIR=
|
||||
PREFIX=$(DESTDIR)/usr
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: prepare
|
||||
prepare:
|
||||
shards install
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
shards build --error-trace -Dpreview_mt
|
||||
@echo SUCCESS
|
||||
|
@ -18,10 +21,12 @@ build:
|
|||
watch:
|
||||
watchexec --restart --delay-run 3 -c -e cr make build
|
||||
|
||||
.PHONY: spec test
|
||||
spec: test
|
||||
test:
|
||||
crystal spec --error-trace
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
install \
|
||||
-D \
|
||||
|
@ -29,5 +34,7 @@ install:
|
|||
bin/mfm \
|
||||
$(PREFIX)/bin/mfm
|
||||
|
||||
.PHONY: spec test build all prepare install
|
||||
.PHONY: deb
|
||||
deb:
|
||||
dpkg-buildpackage -us -uc -d
|
||||
|
||||
|
|
Loading…
Reference in a new issue