This project uses Visual Studio Code Remote Containers extension to run the development environment in Docker container.
- Docker Desktop daemon running on your machine
- install
ms-vscode-remote.remote-containers
extension
- In VSCode, select command
Remote-Container: Reopen in Container
- Wait for the container to build
- The command prompt in vscode's integrated terminal should start at
/workspaces/vscode-remote-devcontainer.go
go run main.go
Note: there is an "Analysis Tools Missing" issue from
gocode-gomod
. It is not needed since we usegopls
. If it bugs you, press "install" button when vscode extension prompt from "Analysis Tools Missing".
Create a new release via Github using a vx.x.x
version pattern. Match golang
image major and minor version and bump patch for any new releases that doesn't change golang
image.
The docker image is build and push automatically to Github Packages (ghcr.io) when a version tag (v*
) is created on the main
branch. The git version tag is used for the docker image version tag.