viallikavoo / hello-world

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MainWorkflow

Running locally

Requirements

  1. Cmake link
  2. docker
  3. go

Commands

make clean will clean the binaries generated
make generate-dockerfile APP_NAME=hello_world will print the generated dockerfile with a comment on top of the current timestamp, and generate a Dockerfile as well. APP_NAME
make test will build and run the docker image and test if it outputs "Hello World".

Github Workflow

main-workflow will be invoked on push to master, which will perform a

  1. make generate-dockerfile APP_NAME=hello_world
  2. make test
  3. Build, and push the image to ghcr.io. The image will be tagged using the branchname and shorthash
  4. The pushed image can be dowloaded from here

Flow

  1. The template_generator.go is the go program that will use the dockerfile template located at link and generate a Dockerfile with the timestamp as a comment on the top.

About


Languages

Language:Go 80.8%Language:Makefile 19.2%