From 48379f9752bae022d36ee5369ff176d124a2c146 Mon Sep 17 00:00:00 2001 From: CarlTern <35721844+CarlTern@users.noreply.github.com> Date: Fri, 15 Sep 2023 14:12:15 +0200 Subject: [PATCH] Enable pipeline sharing through the template --- .../Bitbucket/bitbucket-pipelines.yml | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/examples/templates/Bitbucket/bitbucket-pipelines.yml b/examples/templates/Bitbucket/bitbucket-pipelines.yml index 4bbee579..26dd6fc3 100644 --- a/examples/templates/Bitbucket/bitbucket-pipelines.yml +++ b/examples/templates/Bitbucket/bitbucket-pipelines.yml @@ -1,15 +1,19 @@ +export: true + image: name: atlassian/default-image:2 -test: &test - step: - name: Debricked Scan - script: - - curl -L https://github.com/debricked/cli/releases/latest/download/cli_linux_x86_64.tar.gz | tar -xz debricked - - ./debricked scan - services: - - docker - +definitions: + pipelines: + Debricked: &Debricked + - step: + name: "Debricked Scan" + script: + - curl -L https://github.com/debricked/cli/releases/latest/download/cli_linux_x86_64.tar.gz | tar -xz debricked + - ./debricked scan + services: + - docker + pipelines: default: - - <<: *test \ No newline at end of file + - <<: *Debricked