mirror of https://github.com/tgerczei/conteaner
release: 0.3.0
This commit is contained in:
commit
bcf898554d
|
@ -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"]
|
|
@ -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
|
Loading…
Reference in New Issue