Skip to content

CLI Tool That Helps Promote Services Across Different Environments

License

Notifications You must be signed in to change notification settings

EyalPazz/promoter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Promoter

Promoter facilitates easy promotion between environments using GitOps and Helm. It automates the update of image tags for services in different environments.

Installation

curl -sL https://github.com/EyalPazz/promoter/raw/main/install.sh | bash

Usage

To promote a service to the production environment with the latest image tag, use:

promoter --project <project_name> --service <service_name> --env production

To promote all services of a project to the production environment with the latest image tag, use:

promoter --project <project_name> --env production

Configuration

Create a configuration file named .promoter.yaml in your home directory (~/.promoter.yaml) with the following key-value pairs:git-name:

git-email: <Your Git Email>
git-name: <Your Git Name>
manifest-repo-url: <Config Files Repo URL>
ssh-key-path: <Git SSH Key Path>
region: <Region of Your Container Registry>

Your manifest project structure should follow this format:

argo/
  apps/
      ├── project1/
      │   └── env/
      │       └── values.yaml
      └── project2/
          └── env/
              └── values.yaml

To-Do List

  • 1: Make Deployment Platform agnostic
  • 2: Add Tests
  • 3: Expend to more providers and manifest repo structures
  • 4: Write documentation