Provide a helper for rebuilding the images

This commit is contained in:
Jean-Paul Calderone 2022-12-14 10:07:07 -05:00
parent 1d248f4bd2
commit d66d928fb4
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
# Get your API token here:
# https://app.circleci.com/settings/user/tokens
API_TOKEN=$1
shift
# Name the branch you want to trigger the build for
BRANCH=$1
shift
curl \
--verbose \
--request POST \
--url https://circleci.com/api/v2/project/gh/tahoe-lafs/tahoe-lafs/pipeline \
--header 'Circle-Token: $API_TOKEN' \
--header 'content-type: application/json' \
--data '{"branch":"$BRANCH","parameters":{"build-images":true,"run-tests":false}}'