source: trunk/.circleci/rebuild-images.sh

Last change on this file was 793033c, checked in by Jean-Paul Calderone <exarkun@…>, at 2022-12-14T17:44:11Z

Fix quoting on the helper

  • Property mode set to 100755
File size: 511 bytes
Line 
1#!/usr/bin/env bash
2
3set -euo pipefail
4
5# Get your API token here:
6# https://app.circleci.com/settings/user/tokens
7API_TOKEN=$1
8shift
9
10# Name the branch you want to trigger the build for
11BRANCH=$1
12shift
13
14curl \
15    --verbose \
16    --request POST \
17    --url https://circleci.com/api/v2/project/gh/tahoe-lafs/tahoe-lafs/pipeline \
18    --header "Circle-Token: $API_TOKEN" \
19    --header "content-type: application/json" \
20    --data '{"branch":"'"$BRANCH"'","parameters":{"build-images":true,"run-tests":false}}'
Note: See TracBrowser for help on using the repository browser.