From 25b6965e5e59fa07302dbc8bc348187d78c534b3 Mon Sep 17 00:00:00 2001 From: Jarno Rankinen Date: Mon, 1 Jul 2024 21:35:28 +0300 Subject: [PATCH] Notes about updating and building locally --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index bb89817..5711db1 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,30 @@ A Podman kube YAML file is provided in the repo. The command can also be used to pull the latest version and restart the pod. - To reauthenticate or clear data, simply remove the named volume or run the `auth` command +## Updating + +Binary: +- stop the service +- download or build the new version, replace the of the old binary +- restart the service + +Container: +- pull latest image +- restart container + +## Building locally +Clone the repo, then `cd` to the repo root + +Binary: +> Requires Go 1.22 +```shell +CGO_ENABLED=0 go build -o $HOME/.local/bin/hydroxide-push ./cmd/hydroxide-push/ +``` +Container: +```shell +podman build -t localhost/hydroxide-push:latest . +``` + ## License MIT