Skip to content

Github Action to trigger a deployment of a service to one of our environments

License

Notifications You must be signed in to change notification settings

peachjar/action-trigger-deployment

Repository files navigation

typescript-action status

Github Action: Trigger Deployment for Current Repository

Create a Github deployment object associated to the repository the action is executed in. This allows other Github Actions (or external tools) to listen for the event and being a deployment.

Usage

uses: peachjar/action-trigger-deployment@v1
with:
  token: ${{ secrets.GITHUB_DEPLOY_TOKEN }}
  environment: staging
  description: Deploy on successful push to master

When using with Github actions, you may need to specify requiredContexts, which are verification steps registered with the repository that must succeed before a deployment:

uses: peachjar/action-trigger-deployment@v1
with:
  token: ${{ secrets.GITHUB_DEPLOY_TOKEN }}
  environment: staging
  description: Deploy on successful push to master
  requiredContexts: build,build-migrations

build,build-migrations are the default, used by us at Peachjar.

About

Github Action to trigger a deployment of a service to one of our environments

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published