Skip to content

Commit

Permalink
Update azure_pipeline_validation_appmonitoring.yaml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanujbhattacharjee93 committed Nov 3, 2023
1 parent 401ecc8 commit bd679e6
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .pipelines/azure_pipeline_validation_appmonitoring.yaml
Expand Up @@ -17,7 +17,7 @@ pr:
variables:
armServiceConnectionName: 'ai-acr-validation-rsx'
subscription: '66010356-d8a5-42d3-8593-6aaa3aeb1c11'
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)
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)
repoImageName: '${{ variables.containerRegistry }}.azurecr.io/public/azuremonitor/applicationinsights/aidev'
IS_PR: $[eq(variables['Build.Reason'], 'PullRequest')]

Expand Down Expand Up @@ -132,13 +132,6 @@ jobs:
echo "Build reason = $(Build.Reason)"
if [ "$(Build.Reason)" != "PullRequest" ]; then
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageName }}:$(imageTag) -f ./Dockerfile --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --push --provenance=false .
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 .
docker pull ${{ variables.repoImageName }}:$(imageTag)
else
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageName }}:$(imageTag) -f ./Dockerfile --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --provenance=false .
# load the multi-arch image to run tests
docker buildx build --tag ${{ variables.repoImageName }}:$(imageTag) -f ./Dockerfile --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --load --provenance=false .
fi
docker pull ${{ variables.repoImageName }}:$(imageTag)-test

0 comments on commit bd679e6

Please sign in to comment.