Skip to content

Commit

Permalink
Update Docker Publish Script
Browse files Browse the repository at this point in the history
We no longer publish multi-arch images, remove
the manifest tool and update the script to properly
publish two-digit releases.

Signed-off-by: Brett Logan <lindluni@github.com>
  • Loading branch information
lindluni authored and denyeart committed Mar 3, 2021
1 parent 77facb4 commit 16123fe
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ci/scripts/publish_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ set -euo pipefail

make docker

wget -qO "$PWD/manifest-tool" https://github.com/estesp/manifest-tool/releases/download/v1.0.0/manifest-tool-linux-amd64
chmod +x ./manifest-tool
docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}"

for image in peer orderer ccenv tools; do
docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}"
docker tag "hyperledger/fabric-${image}" "hyperledger/fabric-${image}:amd64-${RELEASE}"
docker push "hyperledger/fabric-${image}:amd64-${RELEASE}"

./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-${image}:amd64-${RELEASE}" --target "hyperledger/fabric-${image}:${RELEASE}"
./manifest-tool push from-args --platforms linux/amd64 --template "hyperledger/fabric-${image}:amd64-${RELEASE}" --target "hyperledger/fabric-${image}:$(sed 's/..$//' <<< ${RELEASE})"
for release in ${RELEASE} ${TWO_DIGIT_RELEASE}; do
docker tag "hyperledger/fabric-${image}" "hyperledger/fabric-${image}:amd64-${release}"
docker tag "hyperledger/fabric-${image}" "hyperledger/fabric-${image}:${release}"
docker push "hyperledger/fabric-${image}:amd64-${release}"
docker push "hyperledger/fabric-${image}:${release}"
done
done

0 comments on commit 16123fe

Please sign in to comment.