Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
Added helper scripts for pushing to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmortensen committed Nov 11, 2021
1 parent d88e8f0 commit 00eefd6
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions push-images-to-dockerhub.sh
Original file line number Diff line number Diff line change
@@ -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

27 changes: 27 additions & 0 deletions tag-images-for-dockerhub.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 00eefd6

Please sign in to comment.