mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 08:32:16 +01:00
23 lines
760 B
YAML
23 lines
760 B
YAML
tasks:
|
|
|
|
- use: fmt
|
|
short: Runs go fmt ./...
|
|
run:
|
|
- go fmt ./...
|
|
|
|
- use: tests
|
|
short: Runs tests inside a container
|
|
run:
|
|
- docker build -t gotenberg:tests -f Dockerfile.tests .
|
|
- docker run --rm -e "VERSION={{ .Orbit.Version }}" -v "$(pwd)/_ci:/go/src/github.com/thecodingmachine/gotenberg/_ci" gotenberg:tests
|
|
|
|
- use: build
|
|
short: Builds a Linux binary and the Docker image
|
|
run:
|
|
- env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version={{ .Orbit.Version }}"
|
|
- docker build . -t gotenberg:{{ .Orbit.Version }}
|
|
|
|
- use: up
|
|
short: Starts the {{ .Orbit.Version }} version of the Gotenberg image
|
|
run:
|
|
- docker run --rm -p 3000:3000/tcp gotenberg:{{ .Orbit.Version }} |