Skip to content

Commit 7cf6a8e

Browse files
author
Evans Aboge (from Dev Box)
committed
Build docker image instead of oci index
1 parent 809fdec commit 7cf6a8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ extends:
287287
# Build image with BuildX but don't push yet - save to local tar file
288288
docker buildx build \
289289
--platform linux/amd64,linux/arm64/v8 \
290-
--output "type=oci,dest=$(Build.ArtifactStagingDirectory)/DockerImage/docker-image.tar" \
290+
--output "type=docker,dest=$(Build.ArtifactStagingDirectory)/DockerImage/docker-image.tar" \
291291
$(IMAGE_TAGS) \
292292
$(Build.SourcesDirectory)
293293
displayName: 'Build Docker image and save to artifact'
@@ -463,7 +463,7 @@ extends:
463463
464464
- bash: |
465465
# Load the Docker image from tar file
466-
docker load < $(Pipeline.Workspace)/DockerImage/docker-image.tar
466+
docker load -i $(Pipeline.Workspace)/DockerImage/docker-image.tar
467467
468468
# Read config values from artifact
469469
VERSION=$(cat $(Pipeline.Workspace)/ImageConfig/version.txt)

0 commit comments

Comments
 (0)