Share via

Lock container image in ACR using Docker@2 task

OO-6907 0 Reputation points
2023-07-13T15:18:55.2966667+00:00

Took below snippet from a sample code. I want to lock subsequent pushed image tag. Does Docker@2 accepts write-enabled: false as input? If not, how do I achieve this with Docker@2 task?

  - task: Docker@2
    condition: eq('${{ parameters.Pulumi}}', 'True')
    inputs:
      containerRegistry: 'devagents'
      repository: 'dev-test-agent'
      command: 'buildAndPush'
      Dockerfile: '$(System.DefaultWorkingDirectory)/Dockerfile'
      tags: '$(devs-agent-tag)'
Community Center | Not monitored

Your answer

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