A bundle for Batect that provides a development container for Golang, with sensible default configuration.
Add the following to your batect.yml:
include:
- type: git
repo: https://github.com/batect/golang-bundle.git
ref: XXX # Replace with latest version from https://github.com/batect/golang-bundle/releasesA container (based on the official Golang images) with sensible defaults for use with Golang.
It mounts the project directory into the container, enables run as current user mode and configures a cache for dependencies downloaded by Go.
tasks:
build:
description: Build the project.
group: Build tasks
run:
container: golang-build-env
command: go build .
include:
- type: git
repo: https://github.com/batect/golang-bundle.git
ref: XXX # Replace with latest version from https://github.com/batect/golang-bundle/releases
The Golang sample project also demonstrates how to use this bundle.
Run ./batect --list-tasks to see a list of available tasks for this project.