Skip to content

Commit

Permalink
chore(ci): add github action for deployment (#160)
Browse files Browse the repository at this point in the history
This adds a Github action to invoke the deployment workflow hosted in our infra repository.
  • Loading branch information
ns4plabs authored Aug 20, 2024
1 parent 471f095 commit ce9c42c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy
on:
push:
branches:
- main
- staging

jobs:
trigger-deploy:
runs-on: ubuntu-latest
steps:
- name: Trigger deployment workflow
- run: |
gh api --method POST \
-H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
/repos/ipshipyard/waterworks-infra/dispatches \
-f "event_type=deploy" \
-F "client_payload[git_sha]=${GITHUB_SHA}" \
-F "client_payload[git_ref]=${GITHUB_REF}"
env:
GH_TOKEN: ${{ secrets.DEPLOYMENT_GITHUB_PAT }}

0 comments on commit ce9c42c

Please sign in to comment.