Skip to content

buildkite/golang-docker-example

Repository files navigation

Buildkite Golang Docker Pipeline Example

Build status Add to Buildkite

This repository is an example Buildkite pipeline that runs tests for a Golang project inside Docker.

👉 See this example in action: buildkite/golang-docker-example

Add to Buildkite

Screenshot of Buildkite Golang Docker example pipeline

How it works

This example uses a Docker-based workflow to run Go tests:

  • The pipeline runs go test and go vet inside a container.
  • The container is defined using Dockerfile and docker-compose.yml.
  • The Buildkite pipeline uploads steps using pipeline.yml.

This is ideal if you want to containerize your builds or match production environments more closely.

Try it yourself

To use this pattern in your own Go project:

  1. Make sure Docker and Docker Compose are installed. See: Install Docker Compose
  2. Copy the example config into your repo:
cd /your/golang/repo

curl -O https://raw.githubusercontent.com/buildkite/golang-docker-example/main/Dockerfile
curl -O https://raw.githubusercontent.com/buildkite/golang-docker-example/main/docker-compose.yml

License

See LICENSE.md (MIT)

About

An example pipeline that runs and tests a Go project inside Docker using Buildkite.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9