{"id":26785584,"url":"https://github.com/derekahn/autoapp","last_synced_at":"2025-04-19T18:05:32.086Z","repository":{"id":64304938,"uuid":"178251064","full_name":"derekahn/autoapp","owner":"derekahn","description":"Example of CI/CD with a simple go app","archived":false,"fork":false,"pushed_at":"2019-07-11T00:48:23.000Z","size":8239,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T11:19:45.778Z","etag":null,"topics":["ci-cd","continuous-deployment","continuous-integration","docker","drone-ci","go","golang","k8s","kubernetes","quay","spinnaker"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derekahn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-28T17:22:45.000Z","updated_at":"2024-10-13T13:09:20.000Z","dependencies_parsed_at":"2023-01-15T10:15:41.073Z","dependency_job_id":null,"html_url":"https://github.com/derekahn/autoapp","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekahn%2Fautoapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekahn%2Fautoapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekahn%2Fautoapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derekahn%2Fautoapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derekahn","download_url":"https://codeload.github.com/derekahn/autoapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249757121,"owners_count":21321256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci-cd","continuous-deployment","continuous-integration","docker","drone-ci","go","golang","k8s","kubernetes","quay","spinnaker"],"created_at":"2025-03-29T11:19:40.821Z","updated_at":"2025-04-19T18:05:32.043Z","avatar_url":"https://github.com/derekahn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autoapp 🤖\n\n[![license](https://img.shields.io/github/license/derekahn/autoapp.svg)](https://github.com/derekahn/autoapp/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/derekahn/autoapp)](https://goreportcard.com/report/github.com/derekahn/autoapp)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a3b36a7aab4d43088d45f213ecb1a423)](https://www.codacy.com/app/git.derek/autoapp?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=derekahn/autoapp\u0026utm_campaign=Badge_Grade)\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/a3b36a7aab4d43088d45f213ecb1a423)](https://www.codacy.com/app/git.derek/autoapp?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=derekahn/autoapp\u0026utm_campaign=Badge_Coverage)\n[![Build Status](https://cloud.drone.io/api/badges/derekahn/autoapp/status.svg)](https://cloud.drone.io/derekahn/autoapp)\n[![Docker Repository on Quay](https://quay.io/repository/derekahn/autoapp/status 'Docker Repository on Quay')](https://quay.io/repository/derekahn/autoapp)\n![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/derekahn/autoapp.svg)\n\nAn example of CI/CD with a simple go application utilizing a multistage docker build.\n\n## Run\n\n### 🐳ized\n\n```bash\n# creates a new image\n$ make build\n\n# runs the image\n$ make run\n```\n\n### 🐹ized\n\n```bash\n# installs deps etc\n$ make install\n\n# execute binary\n$ ./bin/cmd\n```\n\n## Example\n\n![example view](./assets/example.png)\n\n## Environment Variables\n\n```console\n# defaults to \"8080\"\nPORT=3000\n\n# defaults to \"Gopher\"\nNAME=\"Edgar Allan Poe\"\n\n# forces tests to fail\nFAILED=true\n```\n\n## Commands\n\nRun `make help` to list available commands:\n\n```console\n  $  make help\n\nChoose a command run in autoapp:\n\n  install    Install missing dependencies. Builds binary in ./bin\n  build      Creates a docker image of the app\n  fail       Forces a failed docker build of the app due to failing tests\n  run        Runs the current docker image on port 8080\n  clean      Clean build files. Runs `go clean` internally\n  fmt        Runs gofmt on all source files\n  test       Runs all the tests.\n  coverage   Tests code coverage\n  missing    Displays lines of code missing from coverage\n```\n\n## CI/CD How To 🧙\n\nThis tutorial assumes you have access to the [Google Cloud Platform](https://cloud.google.com). While GCP is used for basic infrastructure requirements, the lessons learned in this tutorial can be applied to other platforms.\n\n\u003e It's not a requirement. But reading through this tutorial will be easier and available offline utilizing [vmd](https://www.npmjs.com/package/vmd). It requires [node.js](https://nodejs.org/en/) installed which you can do with `$ brew install node` and then `$ npm install -g vmd`. Then in the root of the project `$ cd ~/\u003cWORK_DIR\u003e/autoapp/ \u0026\u0026 vmd`.\n\n| Section                                                | Description                                                                                                              |\n| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |\n| [Prerequisites](docs/00-prerequisites.md)              | Preface, disclaimers and setting expectations                                                                            |\n| [Installing the Client Tools](docs/01-client-tools.md) | Setup and install of CLIs required                                                                                       |\n| [Creating A New Cluster](docs/02-create-cluster.md)    | Creating and connecting to a [GCP](https://cloud.google.com/) [GKE](https://cloud.google.com/kubernetes-engine/) cluster |\n| [Deploying Spinnaker](docs/03-deploy-spinnaker.md)     | Deploying [Spinnaker](https://www.spinnaker.io/) to our cluster                                                          |\n| [Setting up Quay](docs/04-setup-quay.md)               | Step by step configuration for [Quay](https://quay.io)'s hooks                                                           |\n| [Setting up Spinnaker](docs/05-setup-spinnaker.md)     | Step by step configuration for spinnaker to automate deployments                                                         |\n| [Setting up Drone](docs/06-setup-drone.md)             | Wire up a simple `CI` pre-merge check                                                                                    |\n| [Deploying 🚀](docs/07-deploy.md)                      | Submitting a pull-request which on successful merge will trigger our `CI/CD`                                             |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderekahn%2Fautoapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderekahn%2Fautoapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderekahn%2Fautoapp/lists"}