Update a Service
Update the container image used by a DuploCloud Service
Use DuploCloud service account authentication from Azure DevOps to update the container image used by a service.
Updating a Service
Update a DuploCloud service from an Azure DevOps pipeline using a pipeline script.
Example Pipeline Script
Here is an example Azure DevOps pipeline that updates a Docker container image used by a DuploCloud Service.
Example Pipeline
Prerequisites to use the example script without modification
DUPLO_TOKEN
,DUPLO_HOST
, andECR_BASE
need to be pre-configured in the Azure DevOps variable group namedduplocloud-secrets
The ECR must have the same name as the Azure DevOps repo being built. Modify the name of the ECR, if needed.
Ensure that the DuploCloud Service has the same name as the Azure DevOps repo being built.
These prerequisites can be customized to fit existing pipelines and conventions for passing YAML attribute values. Note that the resources
section triggers the deployment when the ecr-publish
pipeline command finishes executing. env_names
can be a list of comma-separated values for multi-deployments. Default values in early non-production environments are suitable for continuous deployment when used with the pipeline resource trigger.
Example Code
Last updated