From 366a9f7c423a1e6b3af9c97c88366be660a42059 Mon Sep 17 00:00:00 2001 From: James Swineson Date: Fri, 17 Apr 2020 04:13:47 -0700 Subject: [PATCH] update CI def --- azure-pipelines.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index be02757..8011bad 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -45,7 +45,9 @@ jobs: set -Eeuo pipefail docker build --rm=false -t ripe-atlas . docker images --digests ripe-atlas - docker cp $(docker ps -a -f "label=image=ripe-atlas-builder" -f "status=exited" --format "{{.ID}}"):/root ${BUILD_ARTIFACTSTAGINGDIRECTORY} + BUILDER_IMAGE_ID=$(docker ps -a --format="{{.ID}}" --filter="label=image=ripe-atlas-builder" --filter="status=exited" --latest) + docker cp "$BUILDER_IMAGE_ID":/root /tmp + cp -r /tmp/root/atlasswprobe* ${BUILD_ARTIFACTSTAGINGDIRECTORY} displayName: "Build image" - task: PublishBuildArtifacts@1