From a34c100ada16783ffd32fa238b03da78e777f4a0 Mon Sep 17 00:00:00 2001 From: James Swineson Date: Fri, 17 Apr 2020 05:31:58 -0700 Subject: [PATCH] pre-tar the artifacts to prevent uploading duplicated symlinked files --- azure-pipelines.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index ce56096..dafe7cf 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -43,13 +43,15 @@ jobs: - bash: | set -Eeuo pipefail + docker build --rm=false -t ripe-atlas . docker images --digests ripe-atlas + 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 rm -rf /tmp/root/atlasswprobe-*-work - rm -rf /tmp/root/atlasswprobe-*/var/atlas-probe/data - cp -r /tmp/root/atlasswprobe* ${BUILD_ARTIFACTSTAGINGDIRECTORY} + tar -cvzf ${BUILD_ARTIFACTSTAGINGDIRECTORY}/build-artifacts.tar.gz /tmp/root/atlasswprobe-*/ + cp -r /tmp/root/atlasswprobe-*.deb ${BUILD_ARTIFACTSTAGINGDIRECTORY} displayName: "Build image" - task: PublishBuildArtifacts@1