Git Product home page Git Product logo

bitsofinfo / cicdstatemgr Goto Github PK

View Code? Open in Web Editor NEW
27.0 4.0 8.0 10.19 MB

Utility for managing CICD state, sending notifications, and mediating Slack interactive messages & slash commands across multiple flows of execution in CICD platforms such as Tekton.

Home Page: https://bitsofinfo.wordpress.com/2020/08/13/tekton-pipelines-cicd-slack-triggers-state/

License: MIT License

Dockerfile 0.53% Python 99.19% Shell 0.28%
tekton-pipelines tekton-triggers tekton cicd continuous-integration continuous-delivery cicd-pipeline

cicdstatemgr's Introduction

cicdstatemgr's People

Contributors

bitsofinfo avatar boarder981 avatar c-etienne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cicdstatemgr's Issues

Refine slack integration to be a module/plugin

Refine slack integration to be a module/plugin or just cleanup the configuration specification to get rid of references to "slack" as it can really be used to send data to any endpoint.

add "generators" support

Would like to have new 1st glass feature for generating additional "state" data based on the current state that can be generated on demand. This would be configured in app pipeline config files under the classification generators.

Each generator would have an if which if yields a value, then proceeds to set multiple key/value pairs rendered via jinja2

For example:

cicd-contexts:
  dev:
    pipelines:
      build:
        generators:
         dockerfile:
            alpine:
              if: "{%- 'alpine' in state.gitTag -%}true{%- endif -%}"
              set:
                - key: "state.build.targetImageName"
                  value: "{{state.gitAppName}}"
                - key: "state.build.generateDockerfileCmd"
                  value: |
                    ./gendockerfile.sh \
                        -f alpine:latest \
                        -x {{state.gitTag}} 
                        
            centos:
              if: "{%- 'centos' in state.gitTag -%}true{%- endif -%}"
              set:
                - key: "state.build.targetImageName"
                  value: "{{state.gitAppName}}"
                - key: "state.build.generateDockerfileCmd"
                  value: |
                    ./gendockerfile.sh \
                        -f centos:latest \
                        -x {{state.gitTag}} 
       

The operator could then call:

        cicdstatemgr \
          --secrets cicdstatemgr-secrets.yaml  \
          --config cicdstatemgr-config.yaml \
          --id cicd-context-data-id-X \
          --generate pipelines.build.generators.dockerfile 

Which would then yield the matching key/value pairs in the generator config into the cicdContextData state.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.