Skip to content
/ base-go-repo Public template

This repository contains useful CI/CD pipelines, CONTRIBUTING, predefined Dockerfile and versioning for Go repositories but it could be easily adapted to other project structures

License

Notifications You must be signed in to change notification settings

shoriwe/base-go-repo

Repository files navigation

base-go-repo

This repository contains useful CI/CD pipelines, CONTRIBUTING, predefined Dockerfile and versioning for Go repositories but it could be easily adapted to other project structures as well.

Configuration and Customization

Make sure you configure your repository before coding your project.

Files

File Description
Dockerfile Update the default Dockerfile for your specific project, by default it compiles your main binary (if the main.go is located at the root of the repo) and executes it by default.
README.md Update this README file to properly document your own repository.
build.yaml Make sure you updated the lines 39 and 40 with your Git identity. Also update the Go version as it is in your own go.mod
go.mod Delete this file and place your own go.mod

Actions secrets

You will need to setup two Actions Secrets to make use of the Coverage features provided by Codecov - The Leading Code Coverage Solution.

Secret Description and setup
DEVOPS_TOKEN GitHub access token with permissions to Write Packages
CODECOV_TOKEN Your Codecov repository access token.

Documentation

You will find the entire documentation for this project at docs/.

File Description
docs/README.md Detailed description of the documentation files.
CONTRIBUTING.md Rules for contributing to this repository. Including commit nomenclature, code quality and more.
CHANGELOG.md This file is autogenerated by the Build Action's pipeline, should never be modified manually.

About

This repository contains useful CI/CD pipelines, CONTRIBUTING, predefined Dockerfile and versioning for Go repositories but it could be easily adapted to other project structures

Resources

License

Stars

Watchers

Forks

Packages