mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-05-25 09:03:59 +02:00
Add set in GitHub action to notify deployment to Swarmia
This commit is contained in:
parent
71ab11f1fe
commit
4041978402
17
.github/workflows/publish-docker-images.yml
vendored
17
.github/workflows/publish-docker-images.yml
vendored
@ -104,3 +104,20 @@ jobs:
|
|||||||
repository: meilisearch/meilisearch-cloud
|
repository: meilisearch/meilisearch-cloud
|
||||||
event-type: cloud-docker-build
|
event-type: cloud-docker-build
|
||||||
client-payload: '{ "meilisearch_version": "${{ github.ref_name }}", "stable": "${{ steps.check-tag-format.outputs.stable }}" }'
|
client-payload: '{ "meilisearch_version": "${{ github.ref_name }}", "stable": "${{ steps.check-tag-format.outputs.stable }}" }'
|
||||||
|
|
||||||
|
# Send notification to Swarmia to notify of a deployment: https://app.swarmia.com
|
||||||
|
- name: Send deployment to Swarmia
|
||||||
|
if: github.event_name == 'push' && success()
|
||||||
|
run: |
|
||||||
|
JSON_STRING=$( jq --null-input --compact-output \
|
||||||
|
--arg version "${{ github.ref_name }}" \
|
||||||
|
--arg appName "" \
|
||||||
|
--arg environment "production" \
|
||||||
|
--arg commitSha "${{ github.sha }}" \
|
||||||
|
--arg repositoryFullName "${{ github.repository }}" \
|
||||||
|
'{"version": $version, "appName": $appName, "environment": $environment, "commitSha": $commitSha, "repositoryFullName": $repositoryFullName}' )
|
||||||
|
|
||||||
|
curl -H "Authorization: ${{ secrets.SWARMIA_DEPLOYMENTS_AUTHORIZATION }}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d "$JSON_STRING" \
|
||||||
|
https://hook.swarmia.com/deployments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user