/go-api-rest-gh-actions

A repository that implements gh actions to CI/CD a go api

Primary LanguageGo

CI/CD Pipeline for a Go Api

This is a simple CI/CD pipeline for a Go Api using Docker, Docker Registry, Github Actions and AWS Elastic Compute Cloud (EC2).

Prerequisites

  • Docker
  • Docker Registry
  • Github Account
  • AWS Account
  • AWS EC2 Instance
  • Terraform

Install and use

To run the app

go run main.go

To run the tests

go test ./...

To build the app

go build -o main .

To build the tests

go test -c ./... -o tests