From b2a605415422e189f3ce0b9bd6fd481a336211e0 Mon Sep 17 00:00:00 2001 From: Dorian Pula Date: Fri, 23 Feb 2024 14:29:48 -0500 Subject: [PATCH] Update README and improve publishing script. --- README.md | 2 +- publish-deb.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 92c0eec..c165ec7 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,6 @@ sudo dpkg -i "mirror-server-${VERSION}_amd64.deb" * [x] Add mirroring of JSON request. * [x] Add logging to server. * [x] Create Docker image for mirror-server for easier distribution. -* [ ] Add publishing of DEB and Docker image to DroneCI. +* [x] Add publishing of DEB and Docker image to DroneCI. * [ ] Add documentation to the API. * [ ] Publish crate on . diff --git a/publish-deb.sh b/publish-deb.sh index 8f3fa6a..b5b23aa 100755 --- a/publish-deb.sh +++ b/publish-deb.sh @@ -21,6 +21,8 @@ gitea_server="code.birch-tree.net" curl --user "${USERNAME}:${PASSWORD}" \ --upload-file "${pkg_full_path}" \ + --silent \ -X PUT \ "https://${gitea_server}/api/packages/${USERNAME}/generic/${pkg_name}/${pkg_version}/${pkg_filename}" +echo "Published ${pkg_name} v${pkg_version} ===> ${pkg_filename}"