actions-with-docker-example

command module
v0.0.0-...-9a8726f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 2 Imported by: 0

README

actions-with-docker-example

An example github actions pipeline using docker that builds, tests and pushes a go application container image to github container registry (ghcr.io)

Go Application

The application is a Go REST API that offers a single endpoint, /healthcheck. When a GET request is sent to this endpoint, the API responds with a JSON message:

{ "status": "healthy" }

CI/CD pipeline

The pipeline configuration is defined in .github/workflows/ci.yml. This file is automatically detected by GitHub and triggers the defined tasks on every commit.

GitHub Actions consumes computing power, storage, and bandwidth resources. These are taken from the account's limited free resources that vary by account type and are renewed monthly. If exceeded, more resources must be purchased for the pipeline to keep running.

To save resources, include "no-ci" in the commit message when making minor changes like updating the readme file. This prevents the pipeline from running unnecessarily.

If the pipeline succeeds, a new docker image sould be avaliable in the github packages page.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL