Skip to content

Commit

Permalink
feat: override pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
timmy-wright committed Aug 9, 2024
1 parent 4376cdb commit f1faf05
Show file tree
Hide file tree
Showing 2 changed files with 270 additions and 149 deletions.
81 changes: 80 additions & 1 deletion .pipelines/.vsts-vhd-builder-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ variables:
pool:
name: $(POOL_NAME)


parameters:
- name: useOverrides
displayName: Use component overrides
type: boolean
default: false
- name: overrideBranch
displayName: Branch in aks-rp to use for overrides
type: string
default: master
- name: build1804containerd
displayName: Build 1804 containerd
type: boolean
Expand Down Expand Up @@ -185,6 +192,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 1804-containerd
- job: build1804gen2containerd
condition: eq('${{ parameters.build1804gen2containerd }}', true)
Expand All @@ -209,6 +218,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 1804-gen2-containerd
- job: build1804gpucontainerd
condition: eq('${{ parameters.build1804gpucontainerd }}', true)
Expand All @@ -233,6 +244,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 1804-gpu-containerd
- job: build1804gen2gpucontainerd
condition: eq('${{ parameters.build1804gen2gpucontainerd }}', true)
Expand All @@ -257,6 +270,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 1804-gen2-gpu-containerd
- job: buildMarinerV2gen1
condition: eq('${{ parameters.buildMarinerV2gen1 }}', true)
Expand All @@ -283,6 +298,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: marinerv2-gen1
- job: buildAzureLinuxV2gen1
condition: eq('${{ parameters.buildAzureLinuxV2gen1 }}', true)
Expand All @@ -309,6 +326,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: azurelinuxv2-gen1
- job: buildMarinerV2gen2
condition: eq('${{ parameters.buildMarinerV2gen2 }}', true)
Expand All @@ -335,6 +354,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: marinerv2-gen2
- job: buildAzureLinuxV2gen2
condition: eq('${{ parameters.buildAzureLinuxV2gen2 }}', true)
Expand All @@ -361,6 +382,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: azurelinuxv2-gen2
- job: buildMarinerV2gen1fips
condition: eq('${{ parameters.buildMarinerV2gen1fips }}', true)
Expand All @@ -387,6 +410,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: marinerv2-gen1-fips
- job: buildAzureLinuxV2gen1fips
condition: eq('${{ parameters.buildAzureLinuxV2gen1fips }}', true)
Expand All @@ -413,6 +438,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: azurelinuxv2-gen1-fips
- job: buildMarinerV2gen2fips
condition: eq('${{ parameters.buildMarinerV2gen2fips }}', true)
Expand All @@ -439,6 +466,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: marinerv2-gen2-fips
- job: buildAzureLinuxV2gen2fips
condition: eq('${{ parameters.buildAzureLinuxV2gen2fips }}', true)
Expand All @@ -465,6 +494,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: azurelinuxv2-gen2-fips
- job: buildMarinerV2ARM64
condition: eq('${{ parameters.buildMarinerV2ARM64 }}', true)
Expand All @@ -491,6 +522,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: marinerv2-gen2-arm64
- job: buildAzureLinuxV2ARM64
condition: eq('${{ parameters.buildAzureLinuxV2ARM64 }}', true)
Expand All @@ -517,6 +550,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: azurelinuxv2-gen2-arm64
- job: buildMarinerV2gen2kata
condition: eq('${{ parameters.buildMarinerV2gen2kata }}', true)
Expand All @@ -543,6 +578,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: marinerv2-gen2-kata
- job: buildAzureLinuxV2gen2kata
condition: eq('${{ parameters.buildAzureLinuxV2gen2kata }}', true)
Expand All @@ -569,6 +606,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: azurelinuxv2-gen2-kata
- job: buildMarinerV2gen2TrustedLaunch
condition: eq('${{ parameters.buildMarinerV2gen2TrustedLaunch }}', true)
Expand All @@ -595,6 +634,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: marinerv2-gen2-trustedlaunch
- job: buildAzureLinuxV2gen2TrustedLaunch
condition: eq('${{ parameters.buildAzureLinuxV2gen2TrustedLaunch }}', true)
Expand All @@ -621,6 +662,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: azurelinuxv2-gen2-trustedlaunch
- job: buildMarinerV2gen2kataTrustedLaunch
condition: eq('${{ parameters.buildMarinerV2gen2kataTrustedLaunch }}', true)
Expand All @@ -647,6 +690,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: marinerv2-gen2-kata-trustedlaunch
- job: buildAzureLinuxV2gen2kataTrustedLaunch
condition: eq('${{ parameters.buildAzureLinuxV2gen2kataTrustedLaunch }}', true)
Expand All @@ -673,6 +718,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: azurelinuxv2-gen2-kata-trustedlaunch
- job: build1804fipscontainerd
condition: eq('${{ parameters.build1804fipscontainerd }}', true)
Expand All @@ -698,6 +745,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 1804-fips-containerd
- job: build1804fipsgen2containerd
condition: eq('${{ parameters.build1804fipsgen2containerd }}', true)
Expand All @@ -723,6 +772,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 1804-fips-gen2-containerd
- job: build2004fipscontainerd
condition: eq('${{ parameters.build2004fipscontainerd }}', true)
Expand All @@ -748,6 +799,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2004-fips-containerd
- job: build2004fipsgen2containerd
condition: eq('${{ parameters.build2004fipsgen2containerd }}', true)
Expand All @@ -773,6 +826,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2004-fips-gen2-containerd
- job: build2204fipscontainerd
condition: eq('${{ parameters.build2204fipscontainerd }}', true)
Expand All @@ -799,6 +854,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2204-fips-containerd
- job: build2204fipsgen2containerd
condition: eq('${{ parameters.build2204fipsgen2containerd }}', true)
Expand All @@ -825,6 +882,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2204-fips-gen2-containerd
- job: build2204arm64gen2containerd
condition: eq('${{ parameters.build2204arm64gen2containerd }}', true)
Expand All @@ -850,6 +909,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2204-arm64-gen2-containerd
- job: build2404arm64gen2containerd
condition: eq('${{ parameters.build2404arm64gen2containerd }}', true)
Expand All @@ -876,6 +937,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2404-arm64-gen2-containerd
- job: build2204containerd
condition: eq('${{ parameters.build2204containerd }}', true)
Expand All @@ -900,6 +963,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2204-containerd
- job: build2204gen2containerd
condition: eq('${{ parameters.build2204gen2containerd }}', true)
Expand All @@ -924,6 +989,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2204-gen2-containerd
- job: build2404containerd
condition: eq('${{ parameters.build2404containerd }}', true)
Expand All @@ -948,6 +1015,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2404-containerd
- job: build2404gen2containerd
condition: eq('${{ parameters.build2404gen2containerd }}', true)
Expand All @@ -972,6 +1041,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2404-gen2-containerd
- job: build2004cvmgen2containerd
condition: eq('${{ parameters.build2004cvmgen2containerd }}', true)
Expand All @@ -996,6 +1067,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2004-cvm-gen2-containerd
- job: build2204tlgen2containerd
condition: eq('${{ parameters.build2204tlgen2containerd }}', true)
Expand All @@ -1020,6 +1093,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2204-tl-gen2-containerd
- job: build2204minimalgen1containerd
condition: eq('${{ parameters.build2204minimalgen1containerd }}', true)
Expand All @@ -1044,6 +1119,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2204-minimal-gen1-containerd
- job: build2204minimalgen2containerd
condition: eq('${{ parameters.build2204minimalgen2containerd }}', true)
Expand All @@ -1068,6 +1145,8 @@ stages:
displayName: Setup Build Variables
- template: ./templates/.builder-release-template.yaml
parameters:
useOverrides: ${{ parameters.useOverrides }}
overrideBranch: ${{ parameters.overrideBranch }}
artifactName: 2204-minimal-gen2-containerd
- stage: Run_E2E_Tests
condition: and(ne(variables.SKIP_E2E_TESTS, 'true'), eq('${{ parameters.dryrun }}', false))
Expand Down
Loading

0 comments on commit f1faf05

Please sign in to comment.