diff --git a/Earthfile b/Earthfile index e339ed0..6927017 100644 --- a/Earthfile +++ b/Earthfile @@ -49,7 +49,7 @@ cross: docker-build: ARG from=scratch FROM $from - WORKDIR /app + WORKDIR /src COPY +cross/yage /yage # make sure we have the required dependencies in the image # can't do that unfortunately because of https://github.com/earthly/earthly/issues/2618 diff --git a/README.md b/README.md index 7966099..0f8e98f 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,26 @@ some interesting use cases: ## Installation -Only available from source for now. More to come soon! +### From binaries + +Go to the [releases page](https://github.com/glehmann/yage/releases), download the binary for your +platform, extract it and put the `yage` binary in a directory in your `PATH`. + +For example on linux with an intel/amd64 processor, you can run the following commands to install `yage` in `~/.local/bin`: + +```sh +curl -ssL https://github.com/glehmann/yage/releases/download/0.2.0/yage-0.2.0-linux-amd64.tar.gz | tar xzf - -C ~/.local/bin --strip-components=1 +``` + +### Docker + +`yage` is also available as a [docker image](https://github.com/glehmann/yage/pkgs/container/yage). + +Here is how you can use it to encrypt a file in place: + +~~~sh +docker run --rm -t -v $(pwd):/src ghcr.io/glehmann/yage:0.2.0 encrypt -iR prod.pub secrets.yaml +~~~ ### From source