github/go cicd template
- goreleaser and docker sandbox
Version build:
go build -ldflags="-X main.Version=42"
Docker build:
# default version
docker build . -t gh-cicd
# given version
docker build . -t gh-cicd --build-arg="APP_VERSION=666"
# test
docker run --rm -it gh-cicd