{"id":21942529,"url":"https://github.com/markhilton/kubernetes-deployment-patch","last_synced_at":"2026-04-11T19:04:54.540Z","repository":{"id":68163338,"uuid":"132623495","full_name":"markhilton/kubernetes-deployment-patch","owner":"markhilton","description":"Simple bash script to build a tagged Docker image and re-deploy it on Kubernetes","archived":false,"fork":false,"pushed_at":"2018-05-08T15:11:29.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T15:35:30.882Z","etag":null,"topics":["bash","bash-script","deployment","docker","docker-image","dockerfile","environment-variables","kubernetes","kubernetes-deployment"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/markhilton.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-08T14:47:08.000Z","updated_at":"2018-05-08T15:12:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"99923dba-4861-460a-92f1-498b14948ae5","html_url":"https://github.com/markhilton/kubernetes-deployment-patch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markhilton/kubernetes-deployment-patch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markhilton%2Fkubernetes-deployment-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markhilton%2Fkubernetes-deployment-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markhilton%2Fkubernetes-deployment-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markhilton%2Fkubernetes-deployment-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markhilton","download_url":"https://codeload.github.com/markhilton/kubernetes-deployment-patch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markhilton%2Fkubernetes-deployment-patch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269683378,"owners_count":24458669,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bash","bash-script","deployment","docker","docker-image","dockerfile","environment-variables","kubernetes","kubernetes-deployment"],"created_at":"2024-11-29T03:20:59.958Z","updated_at":"2025-12-30T21:48:16.059Z","avatar_url":"https://github.com/markhilton.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes Deployment Patch\nSimple single bash command script to:\n\n1. build a tagged Docker image\n2. push it into Docker repository\n3. force Kubernetes rolling deployment within selected namespace\n\n## Assumptions\n1. Docker image name is the same as Kubernetes deployment name.\n2. `kubectl` is authorized to connect to Kubernetes cluster\n3. If you're using Docker private repository - you're authorized already with `docker login`\n\n## Installation\n1. Copy `build.sh` into your executable environment $PATH.\n\n*example:*\n```\ncp ./build.sh /usr/local/bin/build\n```\n\n2. Add required environment variables listed in `.env` file into your project `.env` where `Dockerfile` is located\n\n*example:*\n```\ncat ./env \u003e\u003e /path_to_your_project_where_Dockerfile_is_located/.env\n```\n\n## Usage\n```\nbuild --help\n```\n\n*examples:*\n\nbuild a Docker image tagged as `latest` \u0026 push it into Docker repository:\n```\nbuild \n```\n\nbuild a Docker image tagged as `1.0.0`, push it into Docker repository and patch Kubernetes deployment to use it in production namespace:\n```\nbuild 1.0.0 PROD\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkhilton%2Fkubernetes-deployment-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkhilton%2Fkubernetes-deployment-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkhilton%2Fkubernetes-deployment-patch/lists"}