CCF/.azure_pipelines_snp.yml

53 строки
1.3 KiB
YAML

pr:
branches:
include:
- main
paths:
include:
- scripts/azure_deployment/*
- .github/workflows/build-ci-container.yml
- .azure_pipelines_snp.yml
- .azure-pipelines-templates/deploy_aci.yml
- .azure-pipelines-templates/test_on_remote.yml
- .snpcc_canary
trigger:
branches:
include:
- main
- "release/*"
exclude:
- "release/[1-2].x"
schedules:
- cron: "0 9-18/3 * * Mon-Fri"
displayName: Regular build
branches:
include:
- main
always: true
resources:
containers:
- container: virtual
image: ccfmsrc.azurecr.io/ccf/ci:05-09-2023-virtual-clang15
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /lib/modules:/lib/modules:ro
jobs:
- template: .azure-pipelines-templates/configure.yml
- template: .azure-pipelines-templates/deploy_aci.yml
parameters:
used_by:
- test_snp
- template: .azure-pipelines-templates/test_on_remote.yml
parameters:
job_name: test_snp
display_name: "Test SNP"
depends_on:
- generate_ssh_key
- deploy_primary_aci
run_on: $[ dependencies.deploy_primary_aci.outputs['deploy_primary_aci.ipAddresses'] ]
ssh_key: $[ dependencies.generate_ssh_key.outputs['generate_ssh_key.sshKey'] ]