我正在使用rabbit的新部署。Yml文件来触发提交后钩子。在此之前,git webcall钩子(http://fortrabbit.com/docs/in-depth/git-hooks/webcall)为我提供了有关实际提交的信息。我现在如何(http://fortrabbit.com/docs/in-depth/deployment-file)访问这些信息?我想知道提交ID(例如40cede3910db6ba0140993ae0d33376ff5df7483)。提前感谢!
webcall钩子继续存在于新的部署 forrabbit中。yml 文件。只需使用部署后钩子并设置url,如下所示:
post-deploy:
# alternatively/additionally an URL can be specified which is called after
# deployment
url: http://domain.tld/callback
# token which will be send as request header `X-Frbit-Token` to verify that
# the request originated from this post-deploy call (defaults to "unset")
token: your-own-token
在你的回调中,你会收到提交ID:http://fortrabbit.com/docs/in-depth/git-hooks/webcall the-callback-url