diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9bcf090..ffc44ef 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,6 +26,9 @@ jobs: addToPath: true - script: | + # Log in to Docker Hub using secrets + docker login -u $(DOCKERHUB_USERNAME_SECRET) -p $(DOCKERHUB_PASSWORD_SECRET) + # Build and push the answers-api Docker image docker build -t $(DOCKER_IMAGE_ANSWERS) ./DamageAssesment.Api.Answers docker push $(DOCKER_IMAGE_ANSWERS)