Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pashamakhilkumarreddy/golang-ci-cd


https://github.com/pashamakhilkumarreddy/golang-ci-cd

cd ci docker golang

Last synced: 23 days ago
JSON representation

Awesome Lists containing this project

README

        

# Golang CI CD Pipeline

### This is a simple CI/CD tutorial using [Harness](https://www.harness.io/).

### 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)

- `docker build --no-cache -f Dockerfile -t golang-ci-cd .`

- `docker run -dp 8080:8080 golang-ci-cd`

### 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 --password `

- `docker buildx build --no-cache --platform=linux/arm64 --platform=linux/amd64 -t docker.io//: --push -f ./Dockerfile .` or `docker build --no-cache --platform=linux/arm64,linux/amd64 -f Dockerfile --push -t / .`