Update README.md

This commit is contained in:
Nicco 2019-12-22 20:02:55 +01:00 committed by GitHub
parent b36bde358f
commit ef4fbce57e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 22 deletions

View File

@ -1,35 +1,45 @@
# tumbo
Docker matrix build generator
Docker matrix build generator.
The basic idea is that you combine a config file with custom variables with templating (Jinja2) and *__tumbo__* will run your matrix build in docker.
## 🚀 Quickstart
###### spec.yml
```yaml
variables:
my_var:
- a
- b
- c
some_other:
- 0.1.0
- 0.1.2
version:
- 3.11
- 3.10
- 3.9
name:
- Alice
- Bob
context: ./build
recipe: './Dockerfile.j2'
tag: "my-tag:{{ my_var }}-{{ some_other }}"
recipe: ./Dockerfile.j2
parallel: no
# no
# yes : uses all threads available
# n : number of threads to use
# default: yes
push: yes
run: yes
registry:
username: my_user
password: my_pass
host: my_host
parallel: no
```
###### Dockerfile.j2
```
FROM alpine:{{ version }}
CMD [ "echo", "Hi {{ name }} from {{ version }}" ]
```
And run
```sh
tumbo -c spec.yml
```
Tumbo will then generate 6 images, build and run them in all the combinations possible with the variables given.
## 📘 Config Reference
### Variables