Skip to content

Commit

Permalink
correct docker img tag name
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew B. White <whitemat@uk.ibm.com>
  • Loading branch information
mbwhite committed Nov 27, 2019
1 parent 09e8994 commit 103214b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,14 @@ 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:
artifact: nodeenv-docker-image
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
Expand Down
4 changes: 2 additions & 2 deletions ci/scripts/publish_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 103214b

Please sign in to comment.