github.com/pvitto98/fabric@v2.1.1+incompatible/ci/scripts/publish_docker.sh (about)

     1  #!/bin/bash
     2  # Copyright IBM Corp. All Rights Reserved.
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  set -euo pipefail
     6  
     7  make docker
     8  
     9  wget -qO "$PWD/manifest-tool" https://github.com/estesp/manifest-tool/releases/download/v1.0.0/manifest-tool-linux-amd64
    10  chmod +x ./manifest-tool
    11  
    12  for image in baseos peer orderer ccenv tools; do
    13    docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}"
    14    docker tag "hyperledger/fabric-${image}" "hyperledger/fabric-${image}:amd64-${RELEASE}"
    15    docker push "hyperledger/fabric-${image}:amd64-${RELEASE}"
    16  
    17    ./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-${image}:amd64-${RELEASE}" --target "hyperledger/fabric-${image}:${RELEASE}"
    18    ./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-${image}:amd64-${RELEASE}" --target "hyperledger/fabric-${image}:${TWO_DIGIT_RELEASE}"
    19  done