Can now pass url from Expose Service to Webhook
When defining a webhook, it can now pass the URL of any services exposed using the expose service step to the webhook. This can be used to run automated tests against the exposed service. ([more info](${{ github.event.client_payload.callbackUri }}))
Here is an example that passes the exposed url for the service 'potato-facts-internal' into a github actions workflow:
- bodyTemplate:
inline: |-
{ "event_type": "checkLogs", "client_payload": {
"callbackUri": "{{armory.callbackUri}}/callback", "service":"{{ armory.preview.potato-facts-internal}}"
}
}
headers:
- key: Authorization
value: token {{secrets.github_token}}
- key: Content-Type
value: application/json
method: POST
name: Integration_Tests
retryCount: 3
uriTemplate: https://api.github.com/repos/mycompany/myrepo/dispatches