Using Azure Devops YAML Pipelines and trying to have a pipeline trigger on a container being pushed to an ACR.
According to the documentation in the link below, I should be able to access the tag and other information related to the image using variables like RESOURCES_CONTAINER_IDENTIFIER_TAG that should be available.
However, I see no trace of variables from Containers or Repositories. It works fine with Pipelines and I haven't tested Builds. To be clear, the pipeline is triggered fine but inside the pipeline I cannot see which tag triggered it.
So is there something special that needs to be done here or is it released in the documentation but not working yet?
env | sort
in bash task and then check whether theRESOURCES_CONTAINER_IDENTIFIER_TAG
variable exists there. – LoLanceresources.container.<Alias>.tag
should work after Sprint 159. Normally we're in Sprint 164, so it should work for your situation. If you specify the repository likerepository : xxx/xxx:v1-tag
, theresources.container.xxx.tag
will outputv1-tag
and if you use something likerepository : xxx/xxx
, theresources.container.xxx.tag
will output the latest tag. Can you share more details about how you define the yaml and how you design the test? – LoLance