Wednesday 1 January 2020

Create Azure CI Build pipeline to create container & push image in DockerHub or Azure Container Registry | Docker part 3

Simple steps to build image and push through Azure Devops Build pipeline:
  1. Create a new build pipeline form Use the classic editor.
  2. Select a source from GitHub and choose repository after authentication.
  3. Choose a template Docker Container.
  4. Configure Build and Push task.
  5. Save and Queue.

If you are getting bellow problem,
denied: requested access to the resource is denied
##[error]denied: requested access to the resource is denied
##[error]/usr/bin/docker failed with return code: 1
In the Build and image and Push an image make sure you have given fully qualified name
Image Name *: rajkrs/docker_linux_redis_netcore:$(Build.BuildId)