Skip to content

Add DR deployment - #138

Open
danzhu54 wants to merge 17 commits into
mainfrom
build-pipeline-update
Open

Add DR deployment#138
danzhu54 wants to merge 17 commits into
mainfrom
build-pipeline-update

Conversation

@danzhu54

Copy link
Copy Markdown
Collaborator

Changes:

  • Add DR stage to release pipeline
  • Add Release config for build

Comment thread pipelines/build-pipeline.yml Outdated
Removes the explicit Release configuration from the web application publish command so the project uses its default publish settings.
Adds a disaster recovery stage that uploads the Velopack release to the DR storage account before production, with production approval now depending on DR completion.
Skip downloads when the Azure Storage container does not exist and create it before uploading the first Velopack release.
Run catalog generation in DR after Dev and before Production using DR-specific storage, webhook secret, and Azure subscription settings.
Check for the catalog container before generation and create it when missing, failing clearly if Azure Storage operations fail.
Runs GenDesignNotes in DR before Production using DR-specific Azure credentials and configuration.
temporary remove depends on dev for testing
Adds a DR deployment stage before Production and parses NuGet references using the final slash to support nested paths.
Re-enables the catalog generation Dev stage and makes DR depend on it, while disabling the usage generation Dev stage and removing its DR dependency.
DownloadNuGetUsageDatabaseAsync now returns a bool indicating whether the database blob existed, catching a 404 BlobNotFound error instead of throwing. CrawlMain logs a message and creates a new database when none was previously indexed, avoiding a crash on first run.
DownloadPlannerUsageDatabaseAsync now catches BlobNotFound (404) errors and returns (false, null) instead of throwing, allowing GenUsagePlanner to create a new database when no previously indexed usages exist.
Run Dev before DR, and let DR use the template’s default build type.
ThrowIfNullOrEmpty(referenceIdentifier);

var indexOfSlash = referenceIdentifier.IndexOf('/');
var indexOfSlash = referenceIdentifier.LastIndexOf('/');

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this change? @syrle-foronda

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some package has multi deep / that cause error on getting actual version
package-name/OS/version <- this cause issue unlike normally written package name `package-name-OS/version'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants