Skip to content

Commit

Permalink
build(images): Removing dependency to Enterprise Build pipeline (#1126)
Browse files Browse the repository at this point in the history
# Description

The CI build pipeline has a dependency with the Retina Enterprise CI
build pipeline. This PR removes this dependency and helps to pull the
Windows Builder image from the Azure Container Registry (ACR) instead of
the Retina Enterprise CI build pipeline.

## Related Issue

If this pull request is related to any issue, please mention it here.
Additionally, make sure that the issue is assigned to you before
submitting this pull request.

## Checklist

- [X] I have read the [contributing
documentation](https://retina.sh/docs/contributing).
- [X] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [X] I have correctly attributed the author(s) of the code.
- [X] I have tested the changes locally.
- [X] I have followed the project's style guidelines.
- [ ] I have updated the documentation, if necessary.
- [ ] I have added tests, if applicable.

## Screenshots (if applicable) or Testing Completed

All images are built successfully

![image](https://github.com/user-attachments/assets/146e7a65-fe7f-44e4-9c69-9714a4bde3c7)

## Additional Notes

Add any additional notes or context about the pull request here.

---

Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.
  • Loading branch information
apontejaj authored Jan 6, 2025
1 parent f097fb4 commit 32ead63
Showing 1 changed file with 5 additions and 20 deletions.
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

0 comments on commit 32ead63

Please sign in to comment.