From 103214b5a2e5a95cf5fe4487e31a456fa7ebc377 Mon Sep 17 00:00:00 2001 From: "Matthew B. White" Date: Wed, 27 Nov 2019 11:15:50 +0000 Subject: [PATCH] correct docker img tag name Signed-off-by: Matthew B. White --- ci/azure-pipelines.yml | 3 +-- ci/scripts/publish_docker.sh | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ci/azure-pipelines.yml b/ci/azure-pipelines.yml index 59bc8884..12f900a3 100644 --- a/ci/azure-pipelines.yml +++ b/ci/azure-pipelines.yml @@ -208,7 +208,7 @@ stages: # Original source of these is https://github.com/hyperledger/ci-management/blob/master/jjb/fabric-chaincode-java/shell/include-raw-publish-docker-jar.sh - job: snapshot_publish condition: and(succeeded(),eq(variables['Build.Reason'], 'IndividualCI')) - dependsOn: main + dependsOn: fvt steps: - task: DownloadPipelineArtifact@2 inputs: @@ -216,7 +216,6 @@ stages: path: $(Build.SourcesDirectory)/build - script: ./ci/scripts/publish_docker.sh env: - MAPPED_VERSION: $(PUSH_VERSION) NEXUS_USERNAME: $(nexus-user) NEXUS_PASSWORD: $(nexus-password) NEXUS_URL: nexus3.hyperledger.org:10003/hyperledger diff --git a/ci/scripts/publish_docker.sh b/ci/scripts/publish_docker.sh index 0b91125c..db5772bb 100755 --- a/ci/scripts/publish_docker.sh +++ b/ci/scripts/publish_docker.sh @@ -8,5 +8,5 @@ docker image load --input build/fabric-nodeenv.tar.gz # gets the build i docker images docker login nexus3.hyperledger.org:10003 --username="${NEXUS_USERNAME}" --password="${NEXUS_PASSWORD}" -docker tag hyperledger/fabric-nodeenv "${NEXUS_URL}/fabric-nodeenv:amd64-${MAPPED_VERSION}-stable" -docker push "${NEXUS_URL}/fabric-nodeenv:amd64-${MAPPED_VERSION}-stable" +docker tag hyperledger/fabric-nodeenv "${NEXUS_URL}/fabric-nodeenv:amd64-latest" +docker push "${NEXUS_URL}/fabric-nodeenv:amd64-latest"