Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(images): Removing dependency to Enterprise Build pipeline #1126

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 5 additions & 20 deletions .pipelines/cg-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,27 +215,12 @@ stages:
- checkout: self
fetchTags: true

- task: DownloadPipelineArtifact@2
- task: Docker@2
displayName: Docker Login
inputs:
buildType: "specific"
project: $(BUILDER_ADO_PROECT)
definition: $(BUILDER_ADO_DEFINITION_ID) # Replace with your build definition ID
buildId: $(BUILDER_ADO_BUILD_ID)
artifactName: $(BUILDER_ADO_ARTIFACTE_NAME) # Replace with your artifact name
itemPattern: "**/*builder*.tar"
downloadPath: '$(Pipeline.Workspace)\artifacts'

- task: PowerShell@2
displayName: "Load Builder Image"
inputs:
targetType: "inline"
script: |
$rootDir = "$(Pipeline.Workspace)\artifacts"
$dockerImages = Get-ChildItem -Path $rootDir -Recurse -Filter *.tar
foreach ($image in $dockerImages) {
Write-Host "Loading Docker image: $($image.FullName)"
docker load -i $image.FullName
}
containerRegistry: $(WINDOWS_BUILDER_REGISTRY)
command: "login"
addPipelineData: false

- task: PowerShell@2
displayName: "Build Retina Windows Image (LTSC2022)"
Expand Down
Loading