tasks: - use: fmt short: Runs go fmt ./... run: - go fmt ./... - use: generate short: Generates all files from blueprints run: - BRANCH="$(git symbolic-ref --short HEAD)"; orbit generate -f .blueprints/README.blueprint.md -o README.md -p "Branch,${BRANCH}" - 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 }}