2024-01-24 17:49:57 +03:00
|
|
|
trigger:
|
2024-01-25 17:37:34 +03:00
|
|
|
tags:
|
2024-01-24 17:49:57 +03:00
|
|
|
include:
|
2024-01-25 17:37:34 +03:00
|
|
|
- ccf-5.*
|
2024-01-24 17:49:57 +03:00
|
|
|
|
2024-01-26 14:07:09 +03:00
|
|
|
pr: none
|
|
|
|
|
2024-01-24 17:49:57 +03:00
|
|
|
resources:
|
|
|
|
containers:
|
|
|
|
- container: virtual
|
2024-05-30 11:12:04 +03:00
|
|
|
image: ccfmsrc.azurecr.io/ccf/ci:2024-05-29-virtual-clang15
|
2024-01-24 17:49:57 +03:00
|
|
|
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /lib/modules:/lib/modules:ro
|
|
|
|
|
|
|
|
- container: snp
|
2024-05-30 11:12:04 +03:00
|
|
|
image: ccfmsrc.azurecr.io/ccf/ci:2024-05-29-snp-clang15
|
2024-01-24 17:49:57 +03:00
|
|
|
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /lib/modules:/lib/modules:ro
|
|
|
|
|
|
|
|
- container: sgx
|
2024-05-30 11:12:04 +03:00
|
|
|
image: ccfmsrc.azurecr.io/ccf/ci:2024-05-29-sgx
|
2024-01-24 17:49:57 +03:00
|
|
|
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx_enclave:/dev/sgx_enclave --device /dev/sgx_provision:/dev/sgx_provision -v /dev/sgx:/dev/sgx -v /lib/modules:/lib/modules:ro
|
|
|
|
|
|
|
|
variables:
|
|
|
|
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-') }}:
|
|
|
|
perf_or_release: release
|
|
|
|
perf_tests: no_run
|
|
|
|
${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/ccf-')) }}:
|
|
|
|
perf_or_release: perf
|
|
|
|
perf_tests: run
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- template: .azure-pipelines-templates/configure.yml
|
|
|
|
|
|
|
|
- template: .azure-pipelines-templates/release-matrix.yml
|
|
|
|
parameters:
|
|
|
|
perf_or_release: ${{ variables['perf_or_release'] }}
|
|
|
|
perf_tests: ${{ variables['perf_tests'] }}
|
|
|
|
|
|
|
|
- job: CredScan
|
|
|
|
variables:
|
|
|
|
Codeql.SkipTaskAutoInjection: true
|
|
|
|
skipComponentGovernanceDetection: true
|
|
|
|
pool:
|
|
|
|
vmImage: "ubuntu-20.04"
|
|
|
|
steps:
|
|
|
|
# Scan for credentials in the repo
|
|
|
|
- task: CredScan@3
|
|
|
|
inputs:
|
|
|
|
suppressionsFile: .gdn/CredScanSuppressions.json
|
|
|
|
# To suppress folders, rather than individual files, we require both of the following options
|
|
|
|
debugMode: true
|
|
|
|
folderSuppression: true
|
|
|
|
|
|
|
|
# Break the build if any credentials (or other Guardian scans) find issues
|
|
|
|
- task: PostAnalysis@2
|
|
|
|
inputs:
|
|
|
|
GdnBreakAllTools: true
|