{"id":20392697,"url":"https://github.com/baptvit/simple-ci","last_synced_at":"2026-04-05T23:03:41.486Z","repository":{"id":39842881,"uuid":"250828049","full_name":"baptvit/simple-ci","owner":"baptvit","description":"Simple and powerful continuous integration pipeline for microservices development teams","archived":false,"fork":false,"pushed_at":"2022-05-25T02:20:07.000Z","size":191,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T05:31:13.871Z","etag":null,"topics":["ci","django","docker","git","git-actions","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baptvit.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":"2020-03-28T15:21:54.000Z","updated_at":"2020-04-07T23:58:11.000Z","dependencies_parsed_at":"2022-08-27T17:21:56.074Z","dependency_job_id":null,"html_url":"https://github.com/baptvit/simple-ci","commit_stats":null,"previous_names":["baptvit/simple-ci"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/baptvit/simple-ci","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptvit%2Fsimple-ci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptvit%2Fsimple-ci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptvit%2Fsimple-ci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptvit%2Fsimple-ci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baptvit","download_url":"https://codeload.github.com/baptvit/simple-ci/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptvit%2Fsimple-ci/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31452901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","django","docker","git","git-actions","postgresql"],"created_at":"2024-11-15T03:45:04.482Z","updated_at":"2026-04-05T23:03:40.880Z","avatar_url":"https://github.com/baptvit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple and powerful continuous integration pipeline for microservices development teams\n\n![Header](images/header.jpg)\n\n[Python](https://www.python.org/) - **3.6.0**\n\n[Django](https://www.djangoproject.com/) - **2.2.5**\n\n[PostgreSQL]() - **11**\n\n[Django RestFramework](https://www.django-rest-framework.org/) - 3.9.4\n\n[Docker]() - **18.09.7**\n\n[Docker-Compose]() - **1.24.1** \n\n# Continues Intregration with git-actions and git-secrets\n![CI](images/ci_pipeline.png)\n\n1 - Create git secrets variables for the sensitive variables. \n   * \u003cb\u003e Settings \u003e Secrets \u003e Add all the secrets. \u003c/b\u003e \n   ![Secrets](images/secrets.png)\n   \n   * Those secrets are \u003cb\u003eencrypted variables\u003c/b\u003e used in workflows/main.yml.\n\n2 - This simple pipeline is powerful for microservices development teamns.\n\n3 - First enforce the code style using PEP 8 best practies.\n\n4 - Build images and Run unit tests.    \n \n    \n# Installations on localhost \n## Create a .env for [Python Decouple](https://pypi.org/project/python-decouple/) sensitive variables:\n\n1 - Create enviroment variables for using in .env\n\n```\n$ export API_DB_USER=\u003cChoose you PostgreSQL username\u003e\n$ export API_DB_PASS=\u003cChoose you PostgreSQL password\u003e\n$ export API_DB_DATABASE=\u003cChoose you PostgreSQL Database\u003e\n``` \n\n2 - Create the .env in manage.py's directory\n```\n.env \nSECRET_KEY=\u003c$DJANGO_SECRET_KEY\u003e\nDATABASE_URL= postgres://\u003c$API_DB_USER\u003e:\u003c$API_DB_PASS\u003e@db_postgres:5432/\u003c$API_DB_DATABASE\u003e\nPG_PASS=\u003c$PG_ADMIN_ROOT_PASS\u003e\n``` \n\n3 - Building all images for later be using for containers:\n```\n$ make build\n```\n\n4 - Execute this command to create PostgreSQL database name as db_postgres: \n```\nmake up-postgresql\n```\n\n5 - Wait 10s and then execute those commands to set username and password credentials for database:\n```\nCreate role with enviroment variables\n$ make create-role\n```\n```\nAlter role to be active \n$ make alter-role\n```\n\n```\nAlter role to give permission to create database \n$ make permission-role\n```\n```\nCreate Database for django \n$ make create-db\n```\n6 - If you wanna up all contaieners:\n \n```\nmake up\n```\n\n7 - Create API container in development mode with deamons:\n \n```\nmake run\n```   \n    \n## API Simple structure as a CRUD \n### produto:\n  * Urls: \n        * api/produto/ \\\n            * / \\\n            * /create \\\n            * /detail-update/{id} \\\n            * /delete/{id}\n### predido:\n  \n  * Urls: \n        * api/produto/ \\\n            * / \\\n            * /create \\\n            * /detail-update/{id} \\\n            * /delete/{id}\n            \n       \n\n\n      \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaptvit%2Fsimple-ci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaptvit%2Fsimple-ci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaptvit%2Fsimple-ci/lists"}