简体   繁体   中英

Github Action - How can I trigger a workflow when argocd deployment is finished?

I'm working in a company that uses Github Actions and Argocd.(using argocd helm chart). Needless to say that the Github repo is private and argocd is in an internal.network that used by the company only.

The flow of what we want to do is that when we deploy the app and the deployment succeeded - Trigger another workflow that will run tests on the deployed environment. Basically, the deployment will be the trigger for another workflow.

I have been trying to configure webhook from argocd to github but with no success. What is the best approach to this situation, will be happy to provide more context if needed.

The best approach would be to use a post sync hook .

Why is it necessary to run the tests in a GitHub actions workflow? Since the application is already deployed to the cluster, wouldn't it make more sense to run the tests directly on the cluster, instead of going through the trouble of communicating with Github?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM