##[warning]No data was written into the file /home/vsts/work/_temp/task_outputs/build_1716986007375.txt

Avinash Pamula 0 Reputation points
2024-05-29T13:12:00.7933333+00:00

i am unable to push to ACR getting this warning message in build solution

##[warning]No data was written into the file /home/vsts/work/_temp/task_outputs/build_1716986007375.txt

here's my file

# Docker
# Build and push an image to Azure Container Registry
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker

trigger:
- main

resources:
- repo: self

variables:
  # Container registry service connection established during pipeline creation
  dockerRegistryServiceConnection: '484f7284-2d0d-4a5a-9c89-465005269850'
  imageRepository: 'avinash123'
  containerRegistry: 'azure12.azurecr.io'
  dockerfilePath: '$(Build.SourcesDirectory)/tg-redirect-master/Dockerfile'
  tag: '$(Build.BuildId)'

  # Agent VM image name
  vmImageName: 'ubuntu-latest'

stages:
- stage: Build
  displayName: Build and push stage
  jobs:
  - job: Build
    displayName: Build
    pool:
      vmImage: $(vmImageName)
    steps:
    - task: Docker@2
      displayName: Build and push an image to container registry
      inputs:
        command: buildAndPush
        repository: $(imageRepository)
        dockerfile: $(dockerfilePath)
        containerRegistry: $(dockerRegistryServiceConnection)
        tags: |
          $(tag)

Community Center | Not monitored
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.