Skip to content

This Github Action triggers the codepipeline webhook to deploy the application

Notifications You must be signed in to change notification settings

medlypharmacy/codepipeline-webhook-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codepipeline-webhook-action

  • This action sends a POST request to codepipeline_webhook_url with codepipeline_webhook_secret in x-api-key header
  • This is currently used to trigger AWS Codepipeline(indirectly via a lambda) for GitHub repository that uses this action

Usage

You can add the below step in your Actions workflow after uploading the artifacts to S3 with the s3-artifacts-action

- name: Deploy to dev env
  uses: medlypharmacy/codepipeline-webhook-action@master
  if: github.ref == 'refs/heads/master'
  with:
  deployment_environment: 'dev'
  codepipeline_webhook_url: ${{ secrets.CODEPIPELINE_WEBHOOK_URL }}
  codepipeline_webhook_secret: ${{ secrets.CODEPIPELINE_WEBHOOK_SECRET }}

About

This Github Action triggers the codepipeline webhook to deploy the application

Resources

Stars

Watchers

Forks

Releases

No releases published