Skip to content

Instantly share code, notes, and snippets.

@jaybrueder
Created November 29, 2018 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaybrueder/edde01d7f155869715bc722d3fd8360f to your computer and use it in GitHub Desktop.
Save jaybrueder/edde01d7f155869715bc722d3fd8360f to your computer and use it in GitHub Desktop.
CircleCI with TwistCLI
version: 2
jobs:
build:
docker:
- image: docker:18.06.1-ce-git
steps:
- checkout
- setup_remote_docker
- run:
name: Build application Docker image
command: |
docker build -t image_name .
- run: apk add --no-cache curl
- run: curl -k -u ${TL_USER}:${TL_PASS} --output ./twistcli ${TL_CONSOLE_URL}/api/v1/util/twistcli
- run: chmod a+x ./twistcli
- run: ./twistcli images scan --details -address ${TL_CONSOLE_URL} -u ${TL_USER} -p ${TL_PASS} image_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment