The goapp
is a bootstrap project for Go CLI application.
The goapp
uses Docker both as a CI tool and for releasing the final goapp
Multi-Architecture Docker image (scratch
with updated ca-credentials
package).
The goapp
Makefile
is used for task automation only: compile, lint, test, etc.
The GitHub action docker
is used for the goapp
CI.
Use Docker buildx
plugin to build multi-architecture Docker image.
docker buildx build --platform=linux/arm64,linux/amd64 -t goapp -f Dockerfile .
Please specify the following GitHub secrets:
DOCKER_USERNAME
- Docker Registry usernameDOCKER_PASSWORD
- Docker Registry password or tokenCR_PAT
- Current GitHub Personal Access Token (withwrite/read
packages permission)DOCKER_REGISTRY
- optional; Docker Registry name, default todocker.io
DOCKER_REPOSITORY
- optional; Docker image repository name, default to$GITHUB_REPOSITORY
(i.e.user/repo
)