Skip to content

Commit bd679e6

Browse files
Update azure_pipeline_validation_appmonitoring.yaml for Azure Pipelines
1 parent 401ecc8 commit bd679e6

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.pipelines/azure_pipeline_validation_appmonitoring.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pr:
1717
variables:
1818
armServiceConnectionName: 'ai-acr-validation-rsx'
1919
subscription: '66010356-d8a5-42d3-8593-6aaa3aeb1c11'
20-
containerRegistry: 'containerinsightsprod' # this build pushes the aidev image to the dev ACR (caution: ACR that has "prod" in its name is the dev one, the one without "prod" is prod AME)
20+
containerRegistry: 'aicommon' # this build pushes the aidev image to the dev ACR (caution: ACR that has "prod" in its name is the dev one, the one without "prod" is prod AME)
2121
repoImageName: '${{ variables.containerRegistry }}.azurecr.io/public/azuremonitor/applicationinsights/aidev'
2222
IS_PR: $[eq(variables['Build.Reason'], 'PullRequest')]
2323

@@ -132,13 +132,6 @@ jobs:
132132
133133
echo "Build reason = $(Build.Reason)"
134134
135-
if [ "$(Build.Reason)" != "PullRequest" ]; then
136-
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageName }}:$(imageTag) -f ./Dockerfile --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --push --provenance=false .
135+
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageName }}:$(imageTag)-test -f ./Dockerfile --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --push --provenance=false .
137136
138-
docker pull ${{ variables.repoImageName }}:$(imageTag)
139-
else
140-
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageName }}:$(imageTag) -f ./Dockerfile --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --provenance=false .
141-
142-
# load the multi-arch image to run tests
143-
docker buildx build --tag ${{ variables.repoImageName }}:$(imageTag) -f ./Dockerfile --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --load --provenance=false .
144-
fi
137+
docker pull ${{ variables.repoImageName }}:$(imageTag)-test

0 commit comments

Comments
 (0)