mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
* new feature: users are now able to provide more file types to convert by adding entries in their configuration file * removing README blueprint: was not working correctly * improving code coverage of config package
28 lines
954 B
YAML
28 lines
954 B
YAML
tasks:
|
|
|
|
- use: fmt
|
|
short: Runs go fmt ./...
|
|
run:
|
|
- go fmt ./...
|
|
|
|
- use: generate
|
|
short: Generates all files from blueprints
|
|
run:
|
|
- orbit generate -f .blueprints/Dockerfile.blueprint -o Dockerfile.ci -p "Image,CI"
|
|
- orbit generate -f .blueprints/Dockerfile.blueprint -o Dockerfile -p "Image,MAIN"
|
|
|
|
- use: ci
|
|
short: Runs CI process inside a container
|
|
run:
|
|
- docker build -t thecodingmachine/gotenberg:ci -f Dockerfile.ci .
|
|
- docker run --rm -e "VERSION={{ .Orbit.Version }}" -v "$(pwd)/.ci:/go/src/github.com/thecodingmachine/gotenberg/.ci" thecodingmachine/gotenberg:ci
|
|
|
|
- use: build
|
|
short: Builds the main Docker image
|
|
run:
|
|
- docker build . -t thecodingmachine/gotenberg:{{ .Orbit.Version }}
|
|
|
|
- use: up
|
|
short: Starts the {{ .Orbit.Version }} version of the Gotenberg image
|
|
run:
|
|
- docker run --rm -p 3000:3000/tcp thecodingmachine/gotenberg:{{ .Orbit.Version }} |