зеркало из https://github.com/Azure/ARO-RP.git
79 строки
3.1 KiB
YAML
79 строки
3.1 KiB
YAML
#################################################################################
|
|
# OneBranch Pipelines #
|
|
# This pipeline was created by EasyStart from a sample located at: #
|
|
# https://aka.ms/obpipelines/easystart/samples #
|
|
# Documentation: https://aka.ms/obpipelines #
|
|
# Yaml Schema: https://aka.ms/obpipelines/yaml/schema #
|
|
# Retail Tasks: https://aka.ms/obpipelines/tasks #
|
|
# Support: https://aka.ms/onebranchsup #
|
|
#################################################################################
|
|
|
|
trigger: none
|
|
pr: none
|
|
|
|
variables:
|
|
Cdp_Definition_Build_Count: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
|
|
ONEBRANCH_AME_ACR_LOGIN: cdpxb8e9ef87cd634085ab141c637806568c00.azurecr.io
|
|
LinuxContainerImage: $(ONEBRANCH_AME_ACR_LOGIN)/b8e9ef87-cd63-4085-ab14-1c637806568c/official/ubi8/go-toolset:1.20.12-5 # Docker image which is used to build the project https://aka.ms/obpipelines/containers
|
|
Debian_Frontend: noninteractive
|
|
|
|
resources:
|
|
repositories:
|
|
- repository: templates
|
|
type: git
|
|
name: OneBranch.Pipelines/GovernedTemplates
|
|
ref: refs/heads/main
|
|
- repository: rhado
|
|
type: git
|
|
name: ARO.Pipelines
|
|
- repository: rpconfig
|
|
type: git
|
|
name: RP-Config
|
|
|
|
extends:
|
|
template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates
|
|
parameters:
|
|
globalSdl: # https://aka.ms/obpipelines/sdl
|
|
# tsa:
|
|
# enabled: true # SDL results of non-official builds aren't uploaded to TSA by default.
|
|
# credscan:
|
|
# suppressionsFile: $(Build.SourcesDirectory)\.config\CredScanSuppressions.json
|
|
disableLegacyManifest: true
|
|
sbom:
|
|
enabled: true
|
|
policheck:
|
|
break: true # always break the build on policheck issues. You can disable it by setting to 'false'
|
|
suppression:
|
|
suppressionFile: $(Build.SourcesDirectory)\.gdn\.gdnsuppress
|
|
suppressionSet: default
|
|
git:
|
|
longpaths: true
|
|
|
|
stages:
|
|
- stage: Build_ARO
|
|
jobs:
|
|
- job: Build_ARO
|
|
pool:
|
|
type: linux
|
|
|
|
variables: # More settings at https://aka.ms/obpipelines/yaml/jobs
|
|
ob_outputDirectory: $(Build.SourcesDirectory)/out # this directory is uploaded to pipeline artifacts, reddog and cloudvault. More info at https://aka.ms/obpipelines/artifacts
|
|
|
|
steps:
|
|
- template: .pipelines/onebranch/templates/template-buildrp-buildaro.yml@self
|
|
|
|
- stage: Build_Docker_Image
|
|
dependsOn: Build_ARO
|
|
jobs:
|
|
- job: Build_Docker_Image
|
|
pool:
|
|
type: docker
|
|
os: linux
|
|
|
|
variables:
|
|
ob_git_checkout: true
|
|
release_tag: $[stageDependencies.Build_ARO.Build_ARO.outputs['buildaro.releasetag']]
|
|
|
|
steps:
|
|
- template: .pipelines/onebranch/templates/template-buildrp-builddocker.yml@self
|