Skip to content

kustomize-everything/action-gitops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-gitops

Provides standard GitOps on a Kustomize Environment overlay with GitHub Actions. Intended to be run by a bot in order to allow DevOps teams to perform Ops quickly and easily via automated PRs with reduced review requirements for common operations like scaling replicas.

Usage

Pre-requisites

Inputs

Refer to action.yml

Outputs

Refer to action.yml

Example Workflow

---
name: Ops
on:
  workflow_dispatch:
    inputs:
      service-name:
        description: 'Service Name'
        type: choice
        options:
          - my-service
        required: true
      replicas:
        description: 'Desired Number of Replicas'
        required: true
      environment:
        description: 'Environment'
        type: choice
        options:
          - integration
          - staging
          - production
        default: 'integration'
        required: true
      replica-selector:
        description: 'Replica Selector (defaults to Service Name if not provided)'
        required: false

jobs:
  op:
    name: Adjust Replicas for Service
    runs-on: ubuntu-latest
    steps:
      - name: Open PR to Adjust Replicas
        uses: kustomize-everything/action-gitops@main
        with:
          service-name: ${{ github.event.inputs.service-name }}
          selector: ${{ github.event.inputs.replica-selector }}
          environment:

Contributing

We would love for you to contribute to kustomize-everything/actions-env-build-and-deploy, pull requests are welcome!

License

The scripts and documentation in this project are released under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages