first (BIG) commit

This commit is contained in:
Julien Neuhart
2018-03-28 20:23:32 +02:00
commit 707927c126
344 changed files with 170912 additions and 0 deletions

31
orbit.yml Normal file
View File

@@ -0,0 +1,31 @@
tasks:
- use: install
short: Installs all required dependencies
run:
- go get -u github.com/golang/dep/cmd/dep
- go get -u gopkg.in/alecthomas/gometalinter.v2
- gometalinter.v2 --install
- use: lint
short: Formats the code and statically checks for errors and warnings
run:
- go fmt ./...
- gometalinter.v2 --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode -E gocyclo --vendor ./...
- 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:snapshot
- use: up
short: Starts the snapshot version of the Gotenberg image
run:
- docker run -p 3000:3000/tcp --name=gotenberg gotenberg:{{ .Orbit.Version }}
- use: stop
short: Stops the snapshot version of the Gotenberg image
run :
- docker stop gotenberg
- docker rm gotenberg