Skip to content

Commit

Permalink
Add secondary MacOs image generation pipelines (actions#9218)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamil-mubarakshin authored Jan 25, 2024
1 parent a9c5653 commit 4637c23
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 1 deletion.
4 changes: 3 additions & 1 deletion images.CI/macos/azure-pipelines/image-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ jobs:
timeoutInMinutes: 1200
pool:
name: Mac-Cloud Image Generation
demands:
- PrimaryRackAgent -equals ${{ parameters.primary_agent }}
variables:
- group: Mac-Cloud Image Generation
- group: ${{ parameters.variable_group_name }}

steps:
- pwsh: |
Expand Down
5 changes: 5 additions & 0 deletions images.CI/macos/azure-pipelines/macos11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ pr:
include:
- main

variables:
- group: Mac-Cloud Image Generation

jobs:
- template: image-generation.yml
parameters:
image_label: 'macOS Big Sur'
base_image_name: 'clean-macOS-11-380Gb-runner'
template_path: 'templates/macOS-11.pkr.hcl'
target_datastore: 'ds-image'
variable_group_name: 'Mac-Cloud Image Generation'
primary_agent: 'true'
5 changes: 5 additions & 0 deletions images.CI/macos/azure-pipelines/macos12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ pr:
include:
- main

variables:
- group: Mac-Cloud Image Generation

jobs:
- template: image-generation.yml
parameters:
image_label: 'macOS Monterey'
base_image_name: 'clean-macOS-12-380Gb-runner'
template_path: 'templates/macOS-12.pkr.hcl'
target_datastore: 'ds-image'
variable_group_name: 'Mac-Cloud Image Generation'
primary_agent: 'true'
23 changes: 23 additions & 0 deletions images.CI/macos/azure-pipelines/secondary-macos11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: macOS-11_$(date:yyyyMMdd)$(rev:.r)_unstable
schedules:
- cron: '45 0 * * 1'
displayName: Weekly
branches:
include:
- main
always: true

trigger: none

variables:
- group: Mac-Cloud Image Generation

jobs:
- template: image-generation.yml
parameters:
image_label: 'macOS Big Sur'
base_image_name: 'clean-macOS-11-380Gb-runner'
template_path: 'templates/macOS-11.pkr.hcl'
target_datastore: 'ds-image'
variable_group_name: 'Mac-Cloud Secondary Image Generation'
primary_agent: 'false'
23 changes: 23 additions & 0 deletions images.CI/macos/azure-pipelines/secondary-macos12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: macOS-12_$(date:yyyyMMdd)$(rev:.r)_unstable
schedules:
- cron: '45 1 * * 1'
displayName: Weekly
branches:
include:
- main
always: true

trigger: none

variables:
- group: Mac-Cloud Image Generation

jobs:
- template: image-generation.yml
parameters:
image_label: 'macOS Monterey'
base_image_name: 'clean-macOS-12-380Gb-runner'
template_path: 'templates/macOS-12.pkr.hcl'
target_datastore: 'ds-image'
variable_group_name: 'Mac-Cloud Secondary Image Generation'
primary_agent: 'false'

0 comments on commit 4637c23

Please sign in to comment.