From f9a405f4dae5a6614f15f5bd31ad3c55b7349d49 Mon Sep 17 00:00:00 2001 From: John Gresty Date: Mon, 4 Nov 2024 14:31:29 +0000 Subject: [PATCH] feat: trigger api-tooling rebuild at end of CD pipeline The api-tooling repo pulls in the latest version of vervet when it builds, so to keep it up to date we should rebuild it when a new version of vervet is published. --- .circleci/config.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a0d79795..ab608e22 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -106,6 +106,15 @@ jobs: ./scripts/release.bash fi + rebuild-tools: + <<: *defaults + steps: + - run: |- + curl -X POST https://circleci.com/api/v2/project/github/snyk/api-tooling/pipeline \ + --header "Circle-Token: $CIRCLE_TOKEN" \ + --header "content-type: application/json" \ + --data '{"branch":"main"}' + workflows: version: 2 CI: @@ -187,3 +196,10 @@ workflows: - snyk-bot-slack requires: - Build Docker Image + + - rebuild-tools: + name: Rebuild api-tooling + context: + - manage-api-tooling + requires: + - Release