Created
November 29, 2018 08:34
-
-
Save jaybrueder/edde01d7f155869715bc722d3fd8360f to your computer and use it in GitHub Desktop.
CircleCI with TwistCLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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