docker build -t my-go-app .
docker run -p 8080:8080 my-go-app
docker build --build-arg PORT=<your-port> -t my-go-app .
docker run -p <your-port>:<your-port> my-go-app
The pipeline automates building and pushing a Docker image compatible with amd64 and arm64 architectures to the GitLab registry using Docker Buildx
When triggering a pipeline manually in GitLab, you can override the PORT variable by specifying a different port value in the 'CI/CD' > 'Run pipeline' interface under 'Variables'.