Skip to content

Commit

Permalink
Fix pipeline to dynamically generate valid Docker image tags using PR…
Browse files Browse the repository at this point in the history
… ID and commit hash with fallback mechanisms
  • Loading branch information
shubhadapaithankar committed Nov 22, 2024
1 parent ee2a49d commit 22aac21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ variables:
value: $[coalesce(variables['System.PullRequest.PullRequestId'], 'unknown')]
- name: COMMIT_ID
value: $[coalesce(variables['System.PullRequest.SourceCommitId'], variables['Build.SourceVersion'])]
- name: SHORT_COMMIT
value: $[substring(variables['COMMIT_ID'], 0, 7)]
- name: TAG
value: pr-$(PR_ID)-$[format('{0}', variables['COMMIT_ID'].substring(0, 7))]
- name: TAG
value: pr-$(PR_ID)-$(SHORT_COMMIT)
- name: ARO_IMAGE
Expand Down

0 comments on commit 22aac21

Please sign in to comment.