flagops

command module
v0.1.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: MIT Imports: 1 Imported by: 0

README

FlagOps

A DevOps tool for generating git ops repositories by combining application templates and environment flag providers.

Install

go install github.com/graytonio/flagops@latest

Quick Start

First create a config file where your templates will be located called .flagops.

envs:
  production:
    provider: flagsmith
    apiKey: prod-key
  staging:
    provider: flagsmith
    apiKey: stg-key
paths:
  - path: apps/
    env: production
    dest:
      type: git
      repo: git@github.com:user/gitops-deployment.git
      path: apps/production
      upsert: false
  - path: apps/
    env: staging
    dest:
      type: git
      repo: git@github.com:user/gitops-deployment.git
      path: apps/production

The config file is broken into two parts:

  1. Environments - Defines a flag provider that can be used to fill out the templates.
  2. Paths - Directories that should be run through the templater with the given environment and output to a specific directory.

Once this file is present you can run the tool:

flagops

This will read the config file from the current directory and output the templated files in the requested output.

Documentation

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL