Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add github action for deployment #160

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore(ci): add github action for deployment
This adds a Github action to invoke the deployment workflow hosted in our infra repository.
  • Loading branch information
ns4plabs committed Aug 15, 2024
commit b20d5c661b5e88947816a1d2d83c34a557e5ed2b
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 }}
Loading