Update README and improve publishing script.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Dorian 2024-02-23 14:29:48 -05:00
parent 0482a50317
commit b2a6054154
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,6 @@ sudo dpkg -i "mirror-server-${VERSION}_amd64.deb"
* [x] Add mirroring of JSON request. * [x] Add mirroring of JSON request.
* [x] Add logging to server. * [x] Add logging to server.
* [x] Create Docker image for mirror-server for easier distribution. * [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. * [ ] Add documentation to the API.
* [ ] Publish crate on <https://crates.io/>. * [ ] Publish crate on <https://crates.io/>.

View File

@ -21,6 +21,8 @@ gitea_server="code.birch-tree.net"
curl --user "${USERNAME}:${PASSWORD}" \ curl --user "${USERNAME}:${PASSWORD}" \
--upload-file "${pkg_full_path}" \ --upload-file "${pkg_full_path}" \
--silent \
-X PUT \ -X PUT \
"https://${gitea_server}/api/packages/${USERNAME}/generic/${pkg_name}/${pkg_version}/${pkg_filename}" "https://${gitea_server}/api/packages/${USERNAME}/generic/${pkg_name}/${pkg_version}/${pkg_filename}"
echo "Published ${pkg_name} v${pkg_version} ===> ${pkg_filename}"