mirror of
https://github.com/cupcakearmy/tumbo.git
synced 2024-12-22 00:06:26 +00:00
Update README.md
This commit is contained in:
parent
b36bde358f
commit
ef4fbce57e
54
README.md
54
README.md
@ -1,35 +1,45 @@
|
|||||||
# tumbo
|
# 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
|
```yaml
|
||||||
variables:
|
variables:
|
||||||
my_var:
|
version:
|
||||||
- a
|
- 3.11
|
||||||
- b
|
- 3.10
|
||||||
- c
|
- 3.9
|
||||||
some_other:
|
name:
|
||||||
- 0.1.0
|
- Alice
|
||||||
- 0.1.2
|
- Bob
|
||||||
|
|
||||||
context: ./build
|
recipe: ./Dockerfile.j2
|
||||||
recipe: './Dockerfile.j2'
|
|
||||||
tag: "my-tag:{{ my_var }}-{{ some_other }}"
|
|
||||||
|
|
||||||
parallel: no
|
|
||||||
# no
|
|
||||||
# yes : uses all threads available
|
|
||||||
# n : number of threads to use
|
|
||||||
# default: yes
|
|
||||||
|
|
||||||
push: yes
|
|
||||||
run: yes
|
run: yes
|
||||||
registry:
|
parallel: no
|
||||||
username: my_user
|
|
||||||
password: my_pass
|
|
||||||
host: my_host
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###### 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
|
## 📘 Config Reference
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
Loading…
Reference in New Issue
Block a user