Skip to content

A github action to pass values to yaml file ( Mostly useful for k8s yamls configs )

Notifications You must be signed in to change notification settings

Aadeshkale/edzyaml

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

edzyaml

A github action to pass values to a remote github repo yaml file ( Mostly useful for k8s yamls configs gitops )


How to use ?

  uses: Aadeshkale/edzyaml@main
  with:
    git_username: Aadeshkale
    git_user_email: aadesh****595@gmail.com
    git_repo: Aadeshkale/kube-cd
    git_token: ${{ secrets.git_token }}
    yaml_file_path: deployment.yaml
    yaml_key_path: 'spec.template.spec.containers.0.image'    
    yaml_value: welcome-app:asdf-tg

Variable discription

 * git_email :-       Email of github repo
 * git_repo :-        Target github repo that contains yaml file
 * git_token :-       Github personal access token for target repo with write access
 * yaml_file_path:-   Path to yaml file 
 * yaml_key_path:-    A complete path to yaml sperated by '.' key needs to pass value
                      example,'spec.template.spec.containers.0.image'    
     
     * If you have list of object then you need to specify index no i.e 0,1,2...
     * Till 9 occurance it will support
     * If you passing same value for update it will show exception i.e Everything up to date

 * yaml_value:-            Value you want to pass  

Screenhots

using_custom_action

op

yaml_file

if you passing same value for update it will show exception i.e Everything up to date

exception

About

A github action to pass values to yaml file ( Mostly useful for k8s yamls configs )

Resources

Stars

Watchers

Forks

Packages

No packages published