Advanced Setup: Deployment options
Learn how to use the deployment options available with the version 2 endpoints for CI/CD.
Skip version checks
Skip build and restore steps
How to enable the options
# 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' # 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
Last updated
Was this helpful?