command
module
Version:
v0.0.0-...-cd62229
Opens a new window with list of versions in this module.
Published: Jul 25, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Golang CI CD Pipeline
This is a simple CI/CD tutorial using Harness.
To run the application in local
go run main.go
or
go build -o main main.go
and ./main
To run the application in local with Docker (make sure Docker is installed)
To push the images to docker hub
-
docker buildx create --name mydockerbuilder --driver docker-container --bootstrap
-
docker buildx use mydockerbuilder
-
docker buildx inspect
-
docker login --username <docker-hub-username> --password <docker-hub-password>
-
docker buildx build --no-cache --platform=linux/arm64 --platform=linux/amd64 -t docker.io/<docker-hub-username>/<image-name>:<tag> --push -f ./Dockerfile .
or docker build --no-cache --platform=linux/arm64,linux/amd64 -f Dockerfile --push -t <docker-hub-username>/<image-name> .
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.