logo
30
6
Login

Golang Build Artifact Upload Example

This repository demonstrates (see .cnb.yml):

  • How to build a golang project into a Docker image and publish to CNB Docker Registry
  • How to build a golang binary package and upload to releases and commit attachments

badge badge badge

Key Code Explanation

  • main.go: Starts an HTTP service
  • Dockerfile: Builds the Docker image
  • .ide/Dockerfile: Build environment configuration for remote development
  • .cnb.yml: CI configuration file
  • README.md: Documentation file

Docker Image

Image: docker.cnb.cool/examples/ecosystem/golang-build:latest

Docker Artifact Details

Usage:

docker pull docker.cnb.cool/examples/ecosystem/golang-build:latest docker run docker.cnb.cool/examples/ecosystem/golang-build:latest

Binary Packages

About

golang 构建 docker 镜像

example
Language
Markdown46.8%
Dockerfile42.2%
Go9.7%
gitignore1.3%