From bcf898554dabd128a713693b24d4cc430320eecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20G=C3=A9rczei?= Date: Tue, 12 May 2020 11:26:53 +0200 Subject: [PATCH] release: 0.3.0 --- Dockerfile | 20 ++++++++++++++++++++ README.md | 11 +++++++++++ 2 files changed, 31 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..86f2b8a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM golang:alpine AS buildenv + +ARG VERSION="0.3.0" +ARG CGO_ENABLED="0" +ARG GOOS="linux" + +WORKDIR $GOPATH/src + +RUN apk add --no-cache git && \ + git config --global advice.detachedHead false && \ + git clone --single-branch https://gitea.com/gitea/tea -b v${VERSION} && \ + cd tea && \ + go get -v . && \ + go build -v -a -ldflags "-X main.Version=$VERSION" -o /tea . + +FROM scratch +LABEL maintainer="Tamás Gérczei " +COPY --from=buildenv /tea / +ENV HOME="/app" +ENTRYPOINT ["/tea"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..c4e9d65 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# tea: A command line tool to interact with Gitea servers + +## Build +- docker build . -t gitea/tea:0.3.0 + +### Usage +- docker volume create tea +- alias tea='docker run --rm -v tea:/app gitea/tea:0.3.0' +- tea login add -n -u -t -i + +#### tea stores its configuration in a file named 'tea.yml', which the above will store on a volume named 'tea' so that it might persist