Skip to content

Commit

Permalink
ci: trigger dispatch workflows to deploy to infra repo (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylenet authored May 24, 2024
1 parent 20ad3c7 commit 9e32394
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,31 @@ jobs:
echo $DIGEST;
echo $IMAGE_ID;
echo $METADATA;
- name: Dispatch deployment (staging)
uses: peter-evans/repository-dispatch@26b39ed245ab8f31526069329e112ab2fb224588
with:
token: ${{ secrets.GH_DISPATCH_TOKEN }}
repository: sourcifyeth/infra
event-type: deploy
client-payload: >-
{
"ref": "${{ github.ref }}",
"sha": "${{ github.sha }}",
"component": "verifier-alliance-sync",
"environment": "staging",
"image_tag": "${{ github.ref_name }}@${{ steps.buildpush.outputs.digest }}"
}
- name: Dispatch deployment (production)
uses: peter-evans/repository-dispatch@26b39ed245ab8f31526069329e112ab2fb224588
with:
token: ${{ secrets.GH_DISPATCH_TOKEN }}
repository: sourcifyeth/infra
event-type: deploy
client-payload: >-
{
"ref": "${{ github.ref }}",
"sha": "${{ github.sha }}",
"component": "verifier-alliance-sync",
"environment": "production",
"image_tag": "${{ github.ref_name }}@${{ steps.buildpush.outputs.digest }}"
}

0 comments on commit 9e32394

Please sign in to comment.