Build a Docker image from Azure DevOps
Build and push a Docker image from Azure DevOps to the AWS Elastic Container Registry (ECR)
Last updated
Was this helpful?
Build and push a Docker image from Azure DevOps to the AWS Elastic Container Registry (ECR)
Last updated
Was this helpful?
Use DuploCloud service account authentication to build and push a Docker image from Azure DevOps to the (ECR). You can use ECR regardless of where your app is hosted.
To build a Docker image and push it to the ECR, use a pipeline script. The script:
Logs you into AWS ECR, using .
Builds and tags the Docker image. The tag name is based on the git commit
SHA (Simple Hashing Algorithm).
Pushes the Docker image to the ECR.
Here is an example Azure DevOps pipeline that builds a Docker image and pushes it to ECR.
Test and code coverage steps are commented to aid in getting started quickly with .NET apps. you can remove them for clarity.
named duplocloud-secrets
.
The ECR must have the same name as the Azure DevOps repo being built. .
A must exist for the application in your src
folder
These prerequisites can be customized to fit existing pipelines and conventions for passing YAML attribute values. Test and code coverage steps are included for illustration purposes. They are not required to publish an image to an ECR.