Skip to content

Commit

Permalink
revert linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
gracewehner committed Dec 10, 2023
1 parent f5f789c commit daeb79a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .pipelines/azure-pipeline-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ trigger:
- main

pr:
autoCancel: true
#autoCancel: true
branches:
include:
- main
Expand Down Expand Up @@ -308,9 +308,15 @@ jobs:
docker buildx create --name dockerbuilder
docker buildx use dockerbuilder
docker login containerinsightsprod.azurecr.io -u $(ACR_USERNAME) -p $(ACR_PASSWORD)
docker buildx build . --platform=linux/amd64,linux/arm64 --file ./build/linux/Dockerfile -t $(LINUX_FULL_IMAGE_NAME) --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --push
docker pull $(LINUX_FULL_IMAGE_NAME)
if [ "$(Build.Reason)" != "PullRequest" ]; then
docker buildx build . --platform=linux/amd64,linux/arm64 --file ./build/linux/Dockerfile -t $(LINUX_FULL_IMAGE_NAME) --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --push
docker pull $(LINUX_FULL_IMAGE_NAME)
else
# Build multiarch image to make sure there are no issues
docker buildx build . --platform=linux/amd64,linux/arm64 --file ./build/linux/Dockerfile -t $(LINUX_FULL_IMAGE_NAME) --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json
# Load in amd64 image to run vulnerability scan
docker buildx build . --file ./build/linux/Dockerfile -t $(LINUX_FULL_IMAGE_NAME) --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json
fi
workingDirectory: $(Build.SourcesDirectory)/otelcollector/
displayName: "Build: build and push image to dev ACR"
Expand Down

0 comments on commit daeb79a

Please sign in to comment.