Skip to content

Commit

Permalink
Create trigger-ga-vmi-pipeline-on-release.yml (#3421)
Browse files Browse the repository at this point in the history
The is automating the creation and publishing of VMIs to GCP when a new
version of bacalhau is released.

---------

Co-authored-by: Forrest <6546409+frrist@users.noreply.github.com>
  • Loading branch information
js-ts and frrist committed Mar 24, 2024
1 parent 2768d7f commit 5428f7f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/trigger-ga-vmi-pipeline-on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build VMI on Bacalhau Release

on:
release:
types: [created]

jobs:
handle-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2


- name: Trigger VMI Build
env:
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.BACALHAU_VMI_DEPLOYMENT_SECRET }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/$REPO/dispatches" \
-d '{"event_type": "new-version-release", "client_payload": {"release_tag": "${{ github.ref_name }}"} }'

0 comments on commit 5428f7f

Please sign in to comment.