From 00eefd64d2641bacbace4a3d1c21cdfcd37bd3eb Mon Sep 17 00:00:00 2001 From: James Date: Thu, 11 Nov 2021 14:32:37 +0530 Subject: [PATCH] Added helper scripts for pushing to dockerhub --- push-images-to-dockerhub.sh | 21 +++++++++++++++++++++ tag-images-for-dockerhub.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 push-images-to-dockerhub.sh create mode 100644 tag-images-for-dockerhub.sh diff --git a/push-images-to-dockerhub.sh b/push-images-to-dockerhub.sh new file mode 100644 index 000000000..2c730d35b --- /dev/null +++ b/push-images-to-dockerhub.sh @@ -0,0 +1,21 @@ +BUILD_DATE=$(date +'%Y%m%d') +VERSION=4.0.0 +NAMESPACE=seleniarm + + +# docker push seleniarm/base:4.0.0-20211111 +# docker push seleniarm/hub:4.0.0-20211111 +# docker push seleniarm/node-base:4.0.0-20211111 +# docker push seleniarm/node-chromium:4.0.0-20211111 +# docker push seleniarm/node-firefox:4.0.0-20211111 +# docker push seleniarm/standalone-chromium:4.0.0-20211111 +# docker push seleniarm/standalone-firefox:4.0.0-20211111 + +docker push seleniarm/base:latest +docker push seleniarm/hub:latest +docker push seleniarm/node-base:latest +docker push seleniarm/node-chromium:latest +docker push seleniarm/node-firefox:latest +docker push seleniarm/standalone-chromium:latest +docker push seleniarm/standalone-firefox:latest + diff --git a/tag-images-for-dockerhub.sh b/tag-images-for-dockerhub.sh new file mode 100644 index 000000000..e77e7bbc7 --- /dev/null +++ b/tag-images-for-dockerhub.sh @@ -0,0 +1,27 @@ +# This script tags all of the latest images with seleniarm, for deploying to Docker Hub. + +BUILD_DATE=$(date +'%Y%m%d') +VERSION=4.0.0 +LOCAL_NAMESPACE=local-seleniarm +NAMESPACE=seleniarm + +docker tag $LOCAL_NAMESPACE/base:latest $NAMESPACE/base:latest +docker tag $LOCAL_NAMESPACE/base:$VERSION-$BUILD_DATE $NAMESPACE/base:$VERSION-$BUILD_DATE + +docker tag $LOCAL_NAMESPACE/hub:latest $NAMESPACE/hub:latest +docker tag $LOCAL_NAMESPACE/hub:$VERSION-$BUILD_DATE $NAMESPACE/hub:$VERSION-$BUILD_DATE + +docker tag $LOCAL_NAMESPACE/node-base:latest $NAMESPACE/node-base:latest +docker tag $LOCAL_NAMESPACE/node-base:$VERSION-$BUILD_DATE $NAMESPACE/node-base:$VERSION-$BUILD_DATE + +docker tag $LOCAL_NAMESPACE/node-chromium:latest $NAMESPACE/node-chromium:latest +docker tag $LOCAL_NAMESPACE/node-chromium:$VERSION-$BUILD_DATE $NAMESPACE/node-chromium:$VERSION-$BUILD_DATE + +docker tag $LOCAL_NAMESPACE/standalone-chromium:latest $NAMESPACE/standalone-chromium:latest +docker tag $LOCAL_NAMESPACE/standalone-chromium:$VERSION-$BUILD_DATE $NAMESPACE/standalone-chromium:$VERSION-$BUILD_DATE + +docker tag $LOCAL_NAMESPACE/node-firefox:latest $NAMESPACE/node-firefox:latest +docker tag $LOCAL_NAMESPACE/node-firefox:$VERSION-$BUILD_DATE $NAMESPACE/node-firefox:$VERSION-$BUILD_DATE + +docker tag $LOCAL_NAMESPACE/standalone-firefox:latest $NAMESPACE/standalone-firefox:latest +docker tag $LOCAL_NAMESPACE/standalone-firefox:$VERSION-$BUILD_DATE $NAMESPACE/standalone-firefox:$VERSION-$BUILD_DATE