release: 0.3.0

This commit is contained in:
Tamás Gérczei 2020-05-12 11:26:53 +02:00
commit bcf898554d
Signed by: tgerczei
GPG Key ID: 9E1246D452248DCE
2 changed files with 31 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -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 <tamas@gerczei.eu>"
COPY --from=buildenv /tea /
ENV HOME="/app"
ENTRYPOINT ["/tea"]

11
README.md Normal file
View File

@ -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 <name_this_login> -u <your_gitea_url> -t <your_gitea_application_token> -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