Skip to content

pivotal-cf/gha-shepherd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action for managing shepherd leases

.github/workflows/test.yml

Usage

This action abstracts claiming and unclaiming shepherd leases.

.github/workflows/test.yml provides a good starting point.

Development

  1. Open with VisualStudion Code
  2. Create .secrets file with real API token.
    • echo "API_TOKEN: $(shepherd create service-account gha-shepherd --json | jq -r .secret)" >> .secrets
    • Local workflow dev runner act injects content of .env and .secrets into workflow execution context.
  3. Open project inside the dev container.
  4. Run make run to start.

Deployment

  1. To upload variables and secrets to the default remote repo for the current branch. PROCEED WITH CARE use make repo-context-setup. This will overwrite remote vaules with local from .env and .secrets

ADR

  1. Parameter validation happens inside shell script, inputs in [./action.yml] are maximum permissive.

About

GitHub Action to manage Shepherd

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published