Azure / container-apps-deploy-pipelines-task

Azure Pipelines Task (Release Candidate) for building and deploying Azure Container Apps
MIT License
6 stars 10 forks source link

Unable to deploy to Container Apps #40

Open adamcodes716 opened 8 months ago

adamcodes716 commented 8 months ago

I am trying to deploy an image from DockerHub. Is this supported? I am getting the same error that others are having. I created a service connection to it and can push an image, but I run into problems when I try to deploy a new container version. I have connections to ARM and Dockerhub set up and verified.

ERROR: (InvalidParameterValueInContainerTemplate) The following field(s) are either invalid or missing. Field 'template.containers.album-backend-api.image' is invalid with details: 'Invalid value: "adamcodes716/album-backend-api:13": GET https:: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:adamcodes716/album-backend-api Type:repository]]';.
##[error]Error: Unable to update Azure Container App via 'az containerapp update' command.
##[debug]Processed: ##vso[task.issue type=error;]Error: Unable to update Azure Container App via 'az containerapp update' command.
- stage: Deploy
  displayName: Deploy to Container Apps
  jobs:
  - job: Deploy
    displayName: Deploy
    pool:
      vmImage: ubuntu-latest
    steps:

    - task: AzureContainerApps@1
      displayName: Deploy new container version
      inputs:
        azureSubscription: 'azure-connection'
        imageToDeploy: '$(IMAGE_NAME):$(TAG)'
        containerAppName: '$(CONTAINERAPPS_APP)'
        resourceGroup: '$(RESOURCE_GROUP)'
        containerAppEnvironment: '$(CONTAINERAPPS_ENVIRONMENT)'
        targetPort: '3500'
        ingress: 'external'