From 5d0e4dc8e64d8639a89b1d74f5fcad4725256652 Mon Sep 17 00:00:00 2001 From: surperfresh Date: Mon, 11 Mar 2019 12:13:30 +0000 Subject: [PATCH 1/3] Commit new codefresh.yaml --- codefresh.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index 016f7be..0c0dc45 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -3,7 +3,7 @@ steps: BuildImage: title: Building Docker Image type: build - image_name: otomato/my-plugin + image_name: codefreshplugins/cf-plugin-example TestSuccess: title: Running success test description: This should succeed @@ -21,4 +21,4 @@ steps: type: push title: Pushing To Registry candidate: ${{BuildImage}} - tag: '${{CF_BRANCH}}' + tag: "0.2" From 863be95c43eadf9d0f82719e262053f629239cb4 Mon Sep 17 00:00:00 2001 From: Ant Weiss Date: Sun, 31 Mar 2019 18:21:58 +0300 Subject: [PATCH 2/3] Update codefresh.yml --- codefresh.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/codefresh.yml b/codefresh.yml index 0c0dc45..d1fbe66 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -4,6 +4,34 @@ steps: title: Building Docker Image type: build image_name: codefreshplugins/cf-plugin-example + ScanImage: + type: composition + composition: + version: '2' + services: + imagebuild: + image: ${{BuildImage}} + command: sh -c "exit 0" + labels: + build.image.id: ${{CF_BUILD_ID}} + composition_candidates: + scan_service: + image: codefreshplugins/cf-twistlock + environment: + - TL_CONSOLE_HOSTNAME=${{TL_CONSOLE_HOSTNAME}} + - TL_CONSOLE_PORT=${{TL_CONSOLE_PORT}} + - TL_CONSOLE_USERNAME=${{TL_CONSOLE_USERNAME}} + - TL_CONSOLE_PASSWORD=${{TL_CONSOLE_PASSWORD}} + - TL_ONLY=${{TL_ONLY}} + command: twistlock.py -i "$$(docker inspect $$(docker inspect $$(docker ps -aqf label=build.image.id=${{CF_BUILD_ID}}) -f {{.Config.Image}}) -f {{.Id}} | sed 's/sha256://g')" + depends_on: + - imagebuild + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /var/lib/docker:/var/lib/docker + # Everything below this line is Optional for CF_METADATA + - '${{CF_VOLUME_NAME}}:/codefresh/volume' + add_flow_volume_to_composition: true TestSuccess: title: Running success test description: This should succeed From 6e48705c4be0570c6988e2bed9531d57841e3dab Mon Sep 17 00:00:00 2001 From: alex-codefresh Date: Thu, 18 Apr 2019 10:40:28 +0300 Subject: [PATCH 3/3] Categories in lowercase --- plugin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.yml b/plugin.yml index 4acd42a..609b89e 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,7 +1,7 @@ image: my-cf-lugin tag: "0.2" version: "0.2" -categories: ["Security"] +categories: ["security"] description: Codefresh Plugin keywords: ['docker'] sources: []