A GitHub template repository for Go
Use Makefile to run the project locally.
# help
make
# install dependencies for development
make install-deps-dev
# run tests
make test
# build applications
make build
# run CI tests
make ci-test
# release applications
make release
# build docker image
make docker-build
# run docker container
make docker-run
# run CI tests in docker container
make ci-test-docker
To publish the docker image to Docker Hub, you need to set the following secrets in the repository settings.
gh secret set DOCKERHUB_USERNAME --body $DOCKERHUB_USERNAME
gh secret set DOCKERHUB_TOKEN --body $DOCKERHUB_TOKEN