conteaner/README.md

28 lines
1.1 KiB
Markdown
Raw Normal View History

## tea: A command line tool to interact with Gitea servers
2020-05-12 09:26:53 +00:00
### Build
2021-03-13 06:02:11 +00:00
- docker build . -t gitea/tea:0.7.0
2020-05-12 09:26:53 +00:00
2020-05-13 06:26:12 +00:00
...or to build a specific release (check [here](https://gitea.com/gitea/tea/releases)):
- export VERSION="<b>0.2.0</b>"
- docker build . -t "gitea/tea:${VERSION}" --build-arg VERSION="${VERSION}"
...alternatively for development version:
- docker build . -t "gitea/tea:latest" --build-arg VERSION="development"
The version of Go used during the build can also be overridden by appending e.g. '--build-arg GOVERSION="<b>1.13.10</b>"'
### Configuration
2020-05-12 09:26:53 +00:00
- docker volume create tea
2020-12-13 17:34:04 +00:00
- alias tea='docker run --rm -v tea:/app -v $PWD:/repo:ro -w /repo gitea/tea:<b><your_release></b>'
- tea login add -n <b><name_this_login></b> -u <b><your_gitea_url></b> -t <b><your_gitea_application_token></b> -i
### Usage
- tea
2020-05-12 09:26:53 +00:00
2020-05-13 06:26:12 +00:00
#### Notes
- 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
2020-05-13 06:26:36 +00:00
- a pre-built [image](https://hub.docker.com/repository/docker/tgerczei/tea) is published via the Docker Hub