2

Sorry, this may sound a bit vague, but is there any way for the following make the following scenario happen?

BuildKite builds a project Argo CD deploys BuildKite runs the test against the latest deployment.

Is there a way for BuildKite to kick off the tests once it finds out that Argo CD has deployed the project?

user6248190
  • 1,233
  • 2
  • 16
  • 31

1 Answers1

4

I don't have much Argo CD experience directly, but after doing some digging it sounds like you'll need to add an Argo CD PostSync hook to your resource: https://argoproj.github.io/argo-cd/user-guide/resource_hooks/

And from within the PostSync hook, you can start a new Buildkite build using: https://buildkite.com/docs/apis/rest-api/builds#create-a-build

Hope that helps!

Tim Lucas
  • 146
  • 3
  • Another way to integrate Argo CD and Buildkite is described here: https://argoproj.github.io/argo-cd/user-guide/ci_automation/ Buildkite might trigger sync explicitly using `argocd cli`, wait for app to be synced and healthy and then run tests: `argocd app sync && argocd app wait ` – Alexander Matyushentsev Jul 04 '19 at 06:11
  • How to trigger a buildkite pipeline after ArgoCD Deployment – gaurav agnihotri Sep 22 '22 at 10:03