Skip to content

Commit

Permalink
Merge pull request #125 from debricked/azure-enable-pipeline-referencing
Browse files Browse the repository at this point in the history
Azure - enable pipeline referencing
  • Loading branch information
ProgHaj authored Oct 4, 2023
2 parents 323ed16 + 24071f4 commit 7fe8762
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
34 changes: 12 additions & 22 deletions examples/templates/Azure/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
trigger:
branches:
include:
- '*' # Run on all branches

resources:
- repo: self

stages:
- stage: debricked
jobs:
- job: debricked
displayName: Debricked scan
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
curl -L https://github.com/debricked/cli/releases/latest/download/cli_linux_x86_64.tar.gz | tar -xz debricked
./debricked scan
displayName: Debricked scan
env:
DEBRICKED_TOKEN: $(DEBRICKED_TOKEN)
jobs:
- job: debricked_scan
displayName: Debricked scan
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
curl -L https://github.com/debricked/cli/releases/latest/download/cli_linux_x86_64.tar.gz | tar -xz debricked
./debricked scan
displayName: Debricked scan
env:
DEBRICKED_TOKEN: $(DEBRICKED_TOKEN)
4 changes: 2 additions & 2 deletions examples/templates/Bitbucket/bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ image:

definitions:
pipelines:
Debricked: &Debricked
debricked-scan: &debricked-scan
- step:
name: "Debricked Scan"
script:
Expand All @@ -16,4 +16,4 @@ definitions:

pipelines:
default:
- <<: *Debricked
- <<: *debricked-scan

0 comments on commit 7fe8762

Please sign in to comment.