Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pashamakhilkumarreddy/golang-ci-cd
- Owner: pashamakhilkumarreddy
- License: mit
- Created: 2023-05-23T10:29:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-25T11:16:34.000Z (over 1 year ago)
- Last Synced: 2024-11-08T14:19:09.100Z (3 months ago)
- Topics: cd, ci, docker, golang
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 / .`