-
Notifications
You must be signed in to change notification settings - Fork 811
CICD Advanced setup - deployment options #7525
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
Merged
eshanrnh
merged 14 commits into
umbraco:main
from
jesp209i:task/cicd-deployment-options
Oct 28, 2025
Merged
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
abedb23
add current options
jesp209i fe17153
fix links
jesp209i b3bae0a
change structure a bit
jesp209i d6fcf6d
make the languare a little sharper
jesp209i 4d82c25
link to new article from section in api
jesp209i e4455b4
A couple of language fixes
jesp209i 7f5514c
Copilot language check
jesp209i 307192f
Tweaks
jesp209i ff9adfd
words
jesp209i c01d13c
Update umbraco-cloud/build-and-customize-your-solution/handle-deploymβ¦
eshanrnh a39ac29
Apply suggestion from @eshanrnh
eshanrnh fa5c257
Apply suggestion from @eshanrnh
eshanrnh 7385517
Apply suggestion from @eshanrnh
eshanrnh 4fb268e
Fixed formatting
eshanrnh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 131 additions & 0 deletions
131
...and-environments/umbraco-cicd/samplecicdpipeline/advanced-deployment-options.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,131 @@ | ||
| # Advanced Setup: Deployment options | ||
|
|
||
| Here you will learn how to use the deployment options available with the v2 endpoints for CI/CD. | ||
|
|
||
| This provides some control to the CI/CD deployment process within the isolated instance before your code is pushed to the Cloud environment. | ||
|
|
||
| ## Option: skipVersionCheck | ||
|
|
||
| During deployment, the system will do an automatic check for downgrades of Cloud dependencies. This is to avoid customers from downgrading packages that may have been auto upgraded on Umbraco Cloud, by accident. | ||
eshanrnh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Enabling **skipVersionCheck** will bypass that safeguard and allow deployments that include downgraded packages. | ||
|
|
||
| {% hint style="info" %} | ||
| This option increases risk and is not recommended for normal workflows. Only enable it when you understand the package differences and accept the potential consequences. | ||
| {% endhint %} | ||
|
|
||
| ## Option: noBuildAndRestore | ||
|
|
||
| The Umbraco CI/CD flow runs the deployment in an isolated instance and performs `dotnet restore` and `dotnet build` to catch obvious build issues before deploying to Cloud. Enabling **noBuildAndRestore** skips the restore and build steps in that isolated instance, which can shorten deployment time by a few minutes. | ||
|
|
||
| Keep in mind the final Kudu deployment on the Cloud environment will still run **restore**, **build**, and **publish**; those steps cannot be skipped. | ||
|
|
||
| ## How to enable the options | ||
|
|
||
| All the pipeline script generally follow the same structure. But there are some small details to be aware of. | ||
eshanrnh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| {% tabs %} | ||
| {% tab title="Azure DevOps Bash" %} | ||
| Locate the main entry pipeline file. It will usually be this one: `azure-release-pipeline.yaml`. | ||
|
|
||
| ```yml | ||
| # Deploy to Umbraco Cloud | ||
| # #### | ||
| # you can edit the variables noBuildAndRestore and skipVersionCheck | ||
| # use booleans but as strings | ||
| - stage: CloudDeploymentStage | ||
| displayName: Deploy To Cloud | ||
| dependsOn: cloudPrepareArtifact | ||
| condition: in(dependencies.cloudPrepareArtifact.result, 'Succeeded') | ||
| variables: | ||
| artifactId: $[ stageDependencies.cloudPrepareArtifact.PrepareAndUploadArtifact.outputs['uploadArtifact.artifactId'] ] | ||
| jobs: | ||
| - template: cloud-deployment.yml | ||
| parameters: | ||
| artifactId: $(artifactId) | ||
| noBuildAndRestore: 'false' | ||
| skipVersionCheck: 'false' | ||
| ``` | ||
|
|
||
| The fields: `noBuildAndRestore` and `skipVersionCheck` can be marked with a `'true'`. | ||
eshanrnh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| {% endtab %} | ||
| {% tab title="Azure DevOps PowerShell" %} | ||
| Locate the main entry pipeline file. It will usually be this one: `azure-release-pipeline.yaml`. | ||
|
|
||
| ```yml | ||
| # Deploy to Umbraco Cloud | ||
| # #### | ||
| # you can edit the variables noBuildAndRestore and skipVersionCheck | ||
| # use booleans | ||
| - stage: CloudDeploymentStage | ||
| displayName: Deploy To Cloud | ||
| dependsOn: cloudPrepareArtifact | ||
| condition: in(dependencies.cloudPrepareArtifact.result, 'Succeeded') | ||
| variables: | ||
| artifactId: $[ stageDependencies.cloudPrepareArtifact.PrepareAndUploadArtifact.outputs['uploadArtifact.artifactId'] ] | ||
| jobs: | ||
| - template: cloud-deployment.yml | ||
| parameters: | ||
| artifactId: $(artifactId) | ||
| noBuildAndRestore: false | ||
| skipVersionCheck: false | ||
|
|
||
| ``` | ||
|
|
||
| The fields: `noBuildAndRestore` and `skipVersionCheck` can be marked with a `true`. | ||
|
|
||
|
|
||
| {% endtab %} | ||
| {% tab title="GitHub Actions Bash" %} | ||
| Locate the main entry pipeline file. It will usually be this one: `main.yml`. | ||
|
|
||
| ```yml | ||
| # Deploy to Umbraco Cloud | ||
| # #### | ||
| # you can edit the variables noBuildAndRestore and skipVersionCheck | ||
| # use booleans but as strings | ||
| cloud-deployment: | ||
| name: "Deploy to Cloud" | ||
| needs: cloud-artifact | ||
| uses: ./.github/workflows/cloud-deployment.yml | ||
| with: | ||
| artifactId: ${{ needs.cloud-artifact.outputs.artifactId }} | ||
| targetEnvironmentAlias: ${{ vars.TARGET_ENVIRONMENT_ALIAS }} | ||
| noBuildAndRestore: "false" | ||
| skipVersionCheck: "false" | ||
| secrets: | ||
| projectId: ${{ secrets.PROJECT_ID }} | ||
| umbracoCloudApiKey: ${{ secrets.UMBRACO_CLOUD_API_KEY }} | ||
| ``` | ||
|
|
||
| The fields: `noBuildAndRestore` and `skipVersionCheck` can be marked with a `"true"`. | ||
eshanrnh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| {% endtab %} | ||
| {% tab title="GitHub Actions PowerShell" %} | ||
| Locate the main entry pipeline file. It will usually be this one: `main.yml`. | ||
|
|
||
| ```yml | ||
| # Deploy to Umbraco Cloud | ||
| # #### | ||
| # you can edit the variables noBuildAndRestore and skipVersionCheck | ||
| # use 0 for false and 1 for true | ||
| cloud-deployment: | ||
| name: "Deploy to Cloud" | ||
| needs: cloud-artifact | ||
| uses: ./.github/workflows/cloud-deployment.yml | ||
| with: | ||
| artifactId: ${{ needs.cloud-artifact.outputs.artifactId }} | ||
| targetEnvironmentAlias: ${{ vars.TARGET_ENVIRONMENT_ALIAS }} | ||
| noBuildAndRestore: 0 | ||
| skipVersionCheck: 0 | ||
| secrets: | ||
| projectId: ${{ secrets.PROJECT_ID }} | ||
| umbracoCloudApiKey: ${{ secrets.UMBRACO_CLOUD_API_KEY }} | ||
| ``` | ||
|
|
||
| The fields: `noBuildAndRestore` and `skipVersionCheck` can be marked with a `1`. | ||
|
|
||
| {% endtab %} | ||
| {% endtabs %} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.