Skip to content

batect/golang-bundle

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

golang-bundle

Build Status License

A bundle for Batect that provides a development container for Golang, with sensible default configuration.

Usage

Setup

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/releases

Containers

golang-build-env

A 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.

Example

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.

Development

Run ./batect --list-tasks to see a list of available tasks for this project.

About

A bundle for Batect that provides a development container for Golang, with sensible default configuration.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks