diff --git a/.goreleaser.yml b/.goreleaser.yml index 5d4e9b5..fe0c8e3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -51,6 +51,17 @@ publishers: brews: - name: q homepage: https://github.com/natesales/repo - tap: + repository: owner: natesales name: repo +dockers: + - image_templates: + - "ghcr.io/natesales/q:{{ .Version }}" + - "ghcr.io/natesales/q:latest" + dockerfile: Dockerfile + use: buildx + build_flag_templates: + - --platform=linux/amd64 + - --label=org.opencontainers.image.version={{ .Version }} + - --label=org.opencontainers.image.revision={{ .FullCommit }} + - --label=org.opencontainers.image.licenses=GPL-3.0-only diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4d5b77a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM alpine:latest +COPY q /usr/bin/q +ENTRYPOINT ["/usr/bin/q"] diff --git a/README.md b/README.md index e3dca9f..7180967 100644 --- a/README.md +++ b/README.md @@ -103,12 +103,13 @@ Help Options: ### Installation -`q` is available in binary form from: +`q` is available from: - [apt/yum/brew from my package repositories](https://github.com/natesales/repo) - [GitHub releases](https://github.com/natesales/q/releases) - [q-dns-git](https://aur.archlinux.org/packages/q-dns-git/) in the AUR - `go install github.com/natesales/q@latest` +- `docker run --rm -it ghcr.io/natesales/q` To install `q` from source: