Fix CD pipeline to use downloaded bicep artifacts instead of repository files #380
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The CD pipeline
eshoponweb-cd-webapp-code.ymlwas configured to download artifacts from the CI pipeline but was incorrectly using bicep files from the repository instead of the downloaded artifacts.Problem
The pipeline had the following issues:
templateFilevariable pointed to'infra/webapp.bicep'(repository path)csmFileused'$(templateFile)'which resolved to the repository fileSolution
Updated the pipeline to correctly reference artifact locations:
Changes Made
'infra/webapp.bicep'to'webapp.bicep'(artifact filename only)'$(templateFile)'to'$(Pipeline.Workspace)/Bicep/$(templateFile)'(uses downloaded artifact)'$(Pipeline.Workspace)/Website/Web.zip'Validation
This enables the intended CI/CD workflow where bicep files can be processed during the CI stage and consumed by the CD pipeline from artifacts rather than always using static repository files.
Fixes #362.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
api.cdnjs.comdotnet build eShopOnWeb.sln(dns block)dotnet test tests/UnitTests/UnitTests.csproj(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.