Skip to content

Instantly share code, notes, and snippets.

@adamhenson
Last active July 4, 2020 17:16
Show Gist options
  • Save adamhenson/f231d64e904016d5510b74f7cc16c2a1 to your computer and use it in GitHub Desktop.
Save adamhenson/f231d64e904016d5510b74f7cc16c2a1 to your computer and use it in GitHub Desktop.
circleci Configuration Snippet to Utilize Foo's Public API
post-deploy:
docker:
- image: circleci/buildpack-deps:jessie-curl
steps:
- run:
name: Run a performance audit
command: |
curl -X POST "https://www.foo.software/v1/queue/items" --insecure \
-H "accept: application/json" -H "Content-Type: application/json" \
-d "{ \"pages\": \"$FOO_PAGE_TOKENS\", \"tag\": \"Build %23$CIRCLE_BUILD_NUM\" }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment